VERY basic browser question

Irmen de Jong irmen at -NOSPAM-REMOVE-THIS-xs4all.nl
Thu Feb 20 15:30:49 EST 2003


Grant Ward Able wrote:
> Hi there - can someone show me how to open a browser, click a button, enter
> data and then read text from the displayed webpage ?

What exactly do yo want to do? If you want to start a web browser,
look at the webbrowser module:


 >>> import webbrowser
 >>> webbrowser.open("www.python.org")


If you want to script a web form, that is a complex issue.
Thankfully there are some modules out there to help you,
have a look at ClientCookie and ClientForm, http://wwwsearch.sourceforge.net/

It might be a tad difficult if you are very new to Python,
but scripting a web site can be *very* tough. Especially
if cookies and authentication are involved.

Good luck!
Irmen de Jong





More information about the Python-list mailing list