[Tutor] screen scraping web-based email

Kent Johnson kent37 at tds.net
Wed Apr 18 18:15:26 CEST 2007


James Cunningham wrote:

> I'd like to write a daemon that logs into the text-based web client
> every so often, scrapes for new email, and uses smtplib to send that
> email to another email address. But I really don't know how I'd go
> about logging in and staying logged in without a browser.
> 
> Hints are appreciated. Am I wrong-headed about this? Any other options
> available to me?

This might be a starting point:
http://pywebmail.sourceforge.net/

Otherwise mechanize and Beautiful Soup will give you some high-level 
tools to get started with:
http://wwwsearch.sourceforge.net/mechanize/
http://www.crummy.com/software/BeautifulSoup/

Kent


More information about the Tutor mailing list