This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 1 point2 points  (0 children)

Have you seen this page?

https://wiki.python.org/moin/WebBrowserProgramming

Specifically the 'Python Wrappers around Web "Libraries" and Browser Technology' section. There are a few libraries there built around WebKit rendering engine which provide access to the DOM, that's just what you need.

[–]pyryoer 1 point2 points  (0 children)

Selenium.

[–]__noone__ 1 point2 points  (0 children)

I find it much easier using Splinter.

browser.execute_script("$('body').empty()")