[twill] mail monitor memory leak?

Titus Brown titus at caltech.edu
Tue Apr 4 08:25:50 PDT 2006


-> Here's the guts of a script to monitor a SquirrelMail web mail account
-> and forward new emails to my cell phone.  It's working well but it
-> consumes about 35 MB per day.  Any suggestions on how to track down
-> the leak?

[ munch ]

Nice script!

You might try 'reset_browser()' after the 'sleep'; that will get rid of
the page history, which is the most likely culprit.

Note that you can use 

 	b = twill.get_browser()
	b.get_page()

to get the HTML, and

        links = b._browser.links()

to get all of the links.

cheers,
--titus



More information about the twill mailing list