Live data from Hacker News

Using Node.js and JQuery to Crawl Public Tweets

github.com

11–15 of 15 posts

Re: Using Node.js and JQuery to Crawl Public Tweets

#11
post #10

Does Node have anything like Mechanize? Handling cookie state and such is something that is much more useful than the selector functionality of jQuery...which is great, but not any better than what Nokogiri offers.

https://github.com/sgentle/phantomjs-node is pretty good for most tasks.

Re: Using Node.js and JQuery to Crawl Public Tweets

#13
post #10

Does Node have anything like Mechanize? Handling cookie state and such is something that is much more useful than the selector functionality of jQuery...which is great, but not any better than what Nokogiri offers.

http://zombie.labnotes.org/ is a library I've used with great success. The documentation in particular is cute.

I found PhantomJS unnecessarily convoluted for trivial tasks and was unable to figure how to do the nontrivial thing I was actually trying to do. The documentation in particular was unusable.

Re: Using Node.js and JQuery to Crawl Public Tweets

#15
I have also found node+jQuery an effective web crawling combination. In particular the cheerio library https://github.com/MatthewMueller/cheerio greatly simplifies data extraction. And as others have mentioned, the asynchronous nature of node is perfectly suited to crawling (as long as you take care not to accidentally DDOS the target site).
Post reply on HN