Use Node.js to Extract Data from the Web
31–35 of 35 posts
Re: Use Node.js to Extract Data from the Web
#32nice! I did a webcrawler with node.js myself last year. It's only a quick try but you can find the worker class here: https://gist.github.com/zerni/6337067 Unfortunately jsdom had a memory leak so the crawler died after a while...
If you want to fix the memory leak, I remember you need to do `window.close()` after the job is done.
Re: Use Node.js to Extract Data from the Web
#33I've done a considerable amount of scraping; if you're poking around at nicely designed web pages, node/cheerio will be nice, but if you need to scrape data out of a DOM mess with quirks and iframes w/in iframes and forms buried 6 posts deep (inside iframes with quirks), I'd use PhantomJS + CasperJS. Having a real browser sometimes makes a difference.
Does this help in scraping website which provide data via jquery ? I mean does this render the javascript on page ?
Re: Use Node.js to Extract Data from the Web
#34Re: Use Node.js to Extract Data from the Web
#35We also used cheerio and node.js and built an click & extract interface around it: http://www.site2mobile.com/ .