Re:Web Scraping 101 with Python
by steeve on Monday March 11, 2013 @01:38AM
(#5355088)
lxml.HTML (+ html5lib if needed) is a FAR superior choice indeed. It's an order of magnitude faster, and you can use not only xpath selectors, but also CSS selectors too, from a lxml dom.
or indeed you can use Scrapy, which fixes all these encoding BS, handles per domain crawl rate and concurrent requests etc...
[ Parent
| on HN ]
There are no comments on this comment yet.