Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python browser emulator with JS support [closed]

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?

like image 940
Felix Avatar asked Aug 01 '26 18:08

Felix


1 Answers

Here are some options:

  1. Selenium (tutorial)
    • For headless automation, Selenium can be used in conjunction with PhantomJS
  2. WebKit
  3. Spidermonkey

Here are some code examples:

  • PyQt4 + WebKit
  • An example using PyQt4+WebKit, and redone with Selenium
like image 154
unutbu Avatar answered Aug 03 '26 06:08

unutbu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!