Mechanize and Javascript

后端 未结 5 550
耶瑟儿~
耶瑟儿~ 2020-11-28 08:53

I want to use Mechanize to simulate browsing to a web page with active JavaScript, including DOM Events and AJAX, and so far I\'ve found no way to do that.

I looked

5条回答
  •  余生分开走
    2020-11-28 09:30

    I've played with this new alternative to Mechanize (which I love) called Phantom JS.

    It is a full web kit browser like Safari or Chrome but is headless and scriptable. You script it with javascript, not python (as far as I know at least).

    There are some example scripts to get you started. It's a lot like using Firebug. I've only spent a few min using it but I found I was quite productive right from the start.

提交回复
热议问题