HTML/XML Parsing with Node & jQuery
alexmaccaw.co.uk
HTML/XML Parsing with Node & jQuery
1–10 of 11 posts
Re: HTML/XML Parsing with Node & jQuery
#2 doc.find('h2:gt(0)').before('')Re: HTML/XML Parsing with Node & jQuery
#3Re: HTML/XML Parsing with Node & jQuery
#4Re: HTML/XML Parsing with Node & jQuery
#5One of my biggest pet peeves with crawling the web is using XPath. Not because I have strong feelings about XPath, just that I use css selector syntax so much, it's a pain I can't leverage that knowledge in this domain as well. Something like this is really awesome and going to make crawling the web more accessible.
Re: HTML/XML Parsing with Node & jQuery
#6Wasn't sure how well that was going to scale, and was worried people would get weird about sending the entire contents of the page they're on - I have a 90% working solution now where it's all done in-browser, with a bunch of classes I've been working on with a node.js set of testing tools
Re: HTML/XML Parsing with Node & jQuery
#7But jQuery is a great scraper if your transformation is complex and non-streamable. [1] https://github.com/aredridel/html5
Re: HTML/XML Parsing with Node & jQuery
#8One of my biggest pet peeves with crawling the web is using XPath. Not because I have strong feelings about XPath, just that I use css selector syntax so much, it's a pain I can't leverage that knowledge in this domain as well. Something like this is really awesome and going to make crawling the web more accessible.
if you're using python, lxml has a cssselect module that makes this a breeze.
Re: HTML/XML Parsing with Node & jQuery
#9One of my biggest pet peeves with crawling the web is using XPath. Not because I have strong feelings about XPath, just that I use css selector syntax so much, it's a pain I can't leverage that knowledge in this domain as well. Something like this is really awesome and going to make crawling the web more accessible.