How does the Perl web crawler track ASP.NET postback?

I am creating a webcrawler in Perl / LWP. How a web browser can track a link in an ASP.NET grid as follows:

<a id="ctl00_MainContent_listResult_Top_LnkNextPage" href="javascript:__doPostBack('ctl00$MainContent$listResult$Top$LnkNextPage','')">Next</a>
+5
source share
3 answers

There seems to be a subclass of WWW :: A mechanism called WWW :: Scripter with javascript and ajax that should be able to do this. Did not try this specific approach.

Another alternative is WWW :: Selenium , which works great, but might be too much overhead / customization for you.

+1
source

WWW-Mechanize-Firefox, / , Firefox.

You need to install mozrepl addon in firefox, and the perl module will connect to this addon and use firefox to open links.

http://metacpan.org/pod/WWW::Mechanize::Firefox

Examples: http://metacpan.org/pod/WWW::Mechanize::Firefox::Examples

0
source

All Articles