![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: How to scrape an HTTPS website that has JavaScriptby tomhukins (Curate) |
on Aug 23, 2004 at 17:08 UTC ( #385150=note: print w/replies, xml ) | Need Help?? |
It was a few months ago, but I recall successfully using HTTP::Recorder to use HTTP::Proxy with JavaScript enabled sites. HTTP::Proxy traps all HTTP requests, regardless of whether they are plain HTML hyperlinks or initiated by JavaScript. Granted, this only works when JavaScript does something simple, but in my experience it usually does. If the JavaScript does anything complex, then you're right: you'll have to either run a JavaScript interpreter within Perl or rewrite the algorithm in Perl.
In Section
Seekers of Perl Wisdom
|
|