Use Node.js to Extract Data from the Web
storminthecastle.com
Use Node.js to Extract Data from the Web
1–10 of 35 posts
Re: Use Node.js to Extract Data from the Web
#2Encapsulates all this functionality in an easy to use interface.
Re: Use Node.js to Extract Data from the Web
#3Re: Use Node.js to Extract Data from the Web
#4Re: Use Node.js to Extract Data from the Web
#5There are definitely some bugs in cheerio if you're looking to do some really fancy selector queries, but for the most part it's extremely performant and pleasant to use.
If anyone is interested in seeing what a sophisticated, parallalized usage of cheerio looks like, feel free to browse through the app I was mentioning above -- it's open source: https://github.com/aroman/keeba/blob/master/jbha.coffee
Re: Use Node.js to Extract Data from the Web
#6Have you played around with node.io? https://github.com/chriso/node.io Encapsulates all this functionality in an easy to use interface.
Re: Use Node.js to Extract Data from the Web
#7 from pyquery import PyQuery as pq
doc = pq('http://google.com')
print doc('#hplogo')Re: Use Node.js to Extract Data from the Web
#8This is cool... if the content is structured. (Ever tried finding addresses in arbitrary text? Much harder: http://smartystreets.com/products/liveaddress-api/extract )
Though, id probably just google for some good address regexes, match against pages, for each address just throw them into something like maps.google.com/?q=[address] then try to scrape whatever normally pops up for a valid result. Also helps if you're expecting addresses to be in a certain country.
Re: Use Node.js to Extract Data from the Web
#9Isn't scrapy easier to use than this?
Re: Use Node.js to Extract Data from the Web
#10Isn't scrapy easier to use than this?