News for hackers. Stuff that matters.
Re:I Don’t Need No Stinking API: Web Scraping For Fun and Pr... by mbustamante on Sunday December 09, 2012 @12:47AM (#4893959)
when i need to scrap a webpage, i use phpQuery (http://code.google.com/p/phpquery/), it's dead simple if you have experience with jQuery and i get all the benefits of a server-side programming language.
Re:I Don’t Need No Stinking API: Web Scraping For Fun and Pr... by lazyjones on Sunday December 09, 2012 @09:40AM (#4894842)
For Perl you can use Web::Query (but don't use the default HTML::TreeBuilder::XPath with it, it's extremely slow - use http://search.cpan.org/dist/HTML-TreeBuilder-LibXML/), or Mojo::DOM (part of Mojolicious: http://mojolicio.us/). Both use the nowdays standard CSS selectors for comfortable handling.

JavaScript can be scraped using WWW::Mechanize::Plugin::JavaScript or even WWW::Mechanize::Firefox).

Re:I Don’t Need No Stinking API: Web Scraping For Fun and Pr... by zevyoura on Sunday December 09, 2012 @01:14AM (#4894008)
A similar module for node.js: https://github.com/mape/node-scraper
Re:I Don’t Need No Stinking API: Web Scraping For Fun and Pr... by latchkey on Sunday December 09, 2012 @01:48AM (#4894069)
Better than that is http://node.io/ Also, don't use jsdom (it is slow and strict), https://github.com/MatthewMueller/cheerio is much better.