Mechanize and Javascript

后端 未结 5 539
耶瑟儿~
耶瑟儿~ 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:19

    An example how to use PyV8, to run JS on a DOM with python can be found here:

    https://github.com/buffer/thug

    This should be fairly easy to make it run together with mechanize.

提交回复
热议问题