How can I handle Javascript in a Perl web crawler?

前端 未结 4 767
说谎
说谎 2020-11-27 07:15

I would like to crawl a website, the problem is, that its full of JavaScript things, such as buttons and such that when they are pressed, they do not change the URL, but the

相关标签:
4条回答
  • 2020-11-27 07:22

    WWW::Mechanize::Firefox might be of use. that way you can have Firefox handle the complex JavaScript issues and then extract the resultant html.

    0 讨论(0)
  • 2020-11-27 07:29

    I would suggest HtmlUnit and Perl wrapper: WWW::HtmlUnit.

    0 讨论(0)
  • 2020-11-27 07:30

    Another option might be Selenium with WWW::Selenium module

    0 讨论(0)
  • 2020-11-27 07:46

    The WWW::Scripter module has a JavaScript plugin that may be useful. Can't say I've used it myself, however.

    0 讨论(0)
提交回复
热议问题