Executing JavaScript with Python without X.

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2011-01-11T19:30:01Z Indexed on 2011/01/11 19:54 UTC
Read the original article Hit count: 224

Filed under:
|

I want to parse a html-page that unfortunately requires JavaScript to show any content. In order to do so I use a small python-script that pulls the html-code of the page, but after that I have to execute the JavaScript in a DOM-context which seems pretty hard.

To make it even harder I want to use it in a server environment that has no X11-server.

Note: I already read about http://code.google.com/p/pywebkitgtk/ but it seems to need a X-server.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about python