Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: