News for hackers. Stuff that matters.
Re:Let's Scrape the Web with Python 3 by ianb on Monday March 11, 2013 @11:48AM (#5357438)
This is a very poor approach to scraping. SAX parsers aren't good for much of anything, and they are especially bad for scraping HTML. You'll get lots of errors while parsing relatively normal pages, and your logic will become very challenging to follow. There's no good reason not to use a proper parser that parses into a document, like lxml or BeautifulSoup. lxml is also very fast, so there's not even a performance argument for SAX.

There are no comments on this comment yet.