Control webbrowser from Python script

Emmanuel Surleau emmanuel.surleau at gmail.com
Sat Oct 9 15:17:57 CEST 2010


> Is it possible to control any webbrowser from Python ? For example to
> issue http POST and GET  command
> Thanks
> Johny

http://docs.python.org/library/webbrowser.html

The control you get is rather limited, though. If your aim is interacting with 
a website, though, you can try urllib/urllib2 for simple things, and Mechanize 
( http://wwwsearch.sourceforge.net/mechanize/ ) or Twill ( 
http://twill.idyll.org/ ) for more complex operations.

Cheers,

Emm



More information about the Python-list mailing list