Re: Trunk.ly picks up the torch of del.icio.us
by jaen on Monday December 20, 2010 @04:30PM
(#2025841)
You can use ElementTree's iterparse() function (also available for lxml) to do incremental parsing while still having XPath-like functionality available for the elements you like (manually calling the .clear() method to release memory).
http://effbot.org/zone/element-iterparse.htm