Control webbrowser from Python script

Tim Harig usernet at
Sat Oct 9 17:17:25 CEST 2010

On 2010-10-09, Johny <python at> wrote:
> Is it possible to control any webbrowser from Python ? For example to
> issue http POST and GET  command

The most reliable way to interact with a webserver is through the urllib
and httplib modules.  This is effective for 99% of cases.  I do understand
that some sites heavy in javascript can be difficult to figure out how to
make valid requests.  On win32 you can automate Internet Explorer through
its InternetExplorer.Application COM interface which is fully documented at
the MSDN site.  On other operating systems, Firefox can be accessed using
its XPCOM interface.

More information about the Python-list mailing list