Python browser emulator with JS support [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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? 回答1: Here are some options: Selenium (tutorial) For headless automation, Selenium can be used in conjunction with PhantomJS WebKit