I need to open a webbrowser using python watch the email and password populate in the form, programmatically submit the form and keep the cookies while navigating through the web site. Any help would be greatly appreciated.

Try mechanize and see if it will work for you. An example.

I tested the Mechanize sample code and it prints the html out in the python shell but I need to open the browser and view the web page. What am I doing wrong with this?

go to this link.
http://beaker.groovie.org/index.html

As python was not 100% made for web development like php etc...
for sessions and cookies.... Python is more towards sofware development

Download the module and easy-install it. You can just use it. very handy

Edited 5 Years Ago by richieking: n/a

Try urllib, urllib2. I've done it. All you need is to POST the data via urllib or urllib2 (can't remember which), and use cookiejar to store the cookie.

It appears that the OP wants to open a web browser, i.e. subprocess.call("firefox"), and then submit some data after some period of time from a running program, which is beyond my knowledge. AFAIK you either do everything in the program or everything in the browser, especially if the page is changing.

Edited 5 Years Ago by woooee: n/a

Comments
good point
This article has been dead for over six months. Start a new discussion instead.