Python browser emulator with JS support
mechanize, python
Solution
Here are some options:
- Selenium (tutorial)
- For headless automation, Selenium can be used in conjunction with PhantomJS
- WebKit
- Spidermonkey
Here are some code examples:
- PyQt4 + WebKit
- An example using PyQt4+WebKit, and redone with Selenium
Problem
I want to grab some data from a site. Usually I use `mechanize` for such things, but now the site gives the data with JS. Alas, `mechanize` doesn't support it. What can I use instead?