Control webbrowser from Python script

Tim Harig usernet at ilthio.net
Sat Oct 9 11:17:25 EDT 2010


On 2010-10-09, Johny <python at hope.cz> 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