Perl - Submit Javascript action to host

后端 未结 4 2070
梦毁少年i
梦毁少年i 2020-12-22 08:52

I am building a Spider in Perl and have a problem:

The Site I want to spider uses a JavaScript for Age-Verification and I don\'t know how to get past this in Perl...

4条回答
  •  遥遥无期
    2020-12-22 09:29

    What Perl modules are you using? WWW::Mechanize has an AJAX plugin, although it hasn't been updated in a while. I guess you could also look at something like WWW::Selenium.

    But I bet that AJAX request is going to inject some HTML that requires the user to input some data, then submit a form. Pretty tricky to cover all bases for that general case...

提交回复
热议问题