GUIDE.txt in mechanize-0.8.5 vs GUIDE.txt in mechanize-0.9.0

- old
+ new

@@ -113,12 +113,10 @@ Mechanize also makes file uploads easy! Just find the file upload field, and tell it what file name you want to upload: form.file_uploads.first.file_name = "somefile.jpg" == Scraping Data -Mechanize uses hpricot[http://code.whytheluckystiff.net/hpricot/] to parse +Mechanize uses nokogiri[http://nokogiri.rubyforge.org/] to parse html. What does this mean for you? You can treat a mechanize page like -an hpricot object. After you have used Mechanize to navigate to the page -that you need to scrape, then scrape it using hpricot methods: +an nokogiri object. After you have used Mechanize to navigate to the page +that you need to scrape, then scrape it using nokogiri methods: agent.get('http://someurl.com/').search(".//p[@class='posted']") -For more information on this powerful scraper, take a look at -HpricotBasics[http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics]