[Tutor] using pythnn to open a password protected website

Wayne Werner waynejwerner at gmail.com
Fri Mar 19 13:45:26 CET 2010


On Fri, Mar 19, 2010 at 7:33 AM, richard west <richardbwest at gmail.com>wrote:

> Hi,
>
> 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.
>
> Does anybody have any ideas?


Check the tamper data plugin for firefox. I think that's the one. It should
help you get the types of parameters, etc. that are actually passed to the
website. Then I think you can use urllib2's variety of methods to connect to
the site. HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100319/cb58ed9e/attachment.html>


More information about the Tutor mailing list