How to click a link that has [removed]__doPostBack in href?

前端 未结 3 1477
眼角桃花
眼角桃花 2020-12-05 12:40

I am writing a screen scraper script in python with module \'mechanize\' and I would like to use the mechanize.click_link() method on a link that has javascript:__doPostBack

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 12:52

    I don't think mechanize supports Javascript; to scrape pages which intrinsically rely on Javascript execution for their functionality, you may need to use a different tool, such as Selenium RC.

提交回复
热议问题