Using sax libxml2 html parser
Stefan Behnel
stefan.behnel-n05pAM at web.de
Sat Jan 6 07:16:43 EST 2007
cesar.ortiz at gmail.com wrote:
> I have created an example using libxml2 based in the code that appears
> in http://xmlsoft.org/python.html.
> My example processes an enough amount of html files to see that the
> memory consumption rises till the process ends (I check it with the
> 'top' command).
Try the lxml binding for libxml2. It relieves you from having to do your own
memory management and makes using that library plain easy.
http://codespeak.net/lxml/
Stefan
More information about the Python-list
mailing list