Calling JavaScript inside the webbrowser module

Anders Gunnarsson anders at flauntkit.com
Sun Oct 30 16:33:29 EDT 2011


Hi!

Is there anyway to communicate with JavaScript inside a website opened via the webbrowser module?

| import webbrowser
| webbrowser.open('http://python.org')

Here I'd like to do something like webbrowser.call('alert(1)')
and I'd like to be able to call the python app from javascript too.

I've looked at pywebkitgtk, but it's messy running on win32.




More information about the Python-list mailing list