P
P
pup_pupets2014-08-21 15:36:11
Ruby on Rails
pup_pupets, 2014-08-21 15:36:11

Can you briefly explain the difference between Nokogiri and Mechanize?

Sorry, my English is hard and I think I'm confusing something.
There is Nokogiri and there is Mechanize. One can retrieve the data from the page and the other can retrieve the data. What's the difference?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Krasnodemsky, 2014-08-21
@pup_pupets

Nokogiri - Parser html / xml, designed to parse pages, for example - to steal someone else's content and pass it off as your own.
Mechanize - A library for automating interaction with sites. Submit forms, click on links, set cookies, for example - you can write auto-posting on several resources.
Detailed examples are on their websites.

S
Sergey Toy, 2014-08-21
@Toy

It's simple, the second uses the first to get the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question