[Tutor] using pythnn to open a password protected website
steve at pearwood.info
Sat Mar 20 01:27:26 CET 2010
On Fri, 19 Mar 2010 11:33:36 pm richard west wrote:
> Im trying to use python to open up a password protected website(e.g.
> facebook / gmail) in Firefox. supplying the login and password
> automatically at runtime - so that I can interface my code with
> fingerprint recognition code. So far I have only found urllib,
> urllib2 and web browser, none of which I have been able to use.
> urllib2 can log me in, but then I cant pass this authenicated login
> to the browser. At the very least I need to be able to send the form
> post information to the browser via my code, and preferably
> auto-submit the form.
You might like to look at Mechanize, which is a third-party Python
project for dealing with just that sort of problem.
More information about the Tutor