Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I tried to automate web search on a web site. But its first page is login which is coded with javascript. I read LWP module, it does not mention to support javascript parsing. Is there any way to link javascript with LWP? Any help is appreciated.
  • Comment on how to parse javascript function in perl LWP script

Replies are listed 'Best First'.
Re: how to parse javascript function in perl LWP script
by ignatz (Vicar) on May 23, 2002 at 21:04 UTC
    It's hard to answer these sort of things blind. My bet is that LWP has little to do with the answer. You're going to have to hack through the JavaScript and see what it's doing. The big question is what does the login form's target page need in terms of post data in order to get you through? Who knows what fun awaits after that.
    ()-()
     \"/
      `                                                     
    
Re: how to parse javascript function in perl LWP script
by Cody Pendant (Prior) on May 24, 2002 at 11:31 UTC
    Tell us the URL of the page with the JavaScript login. We'll figure it out.
    --
    ($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;