Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Running JavaScript in perl by proxy

by Joost (Canon)
on May 08, 2007 at 17:57 UTC ( [id://614211]=note: print w/replies, xml ) Need Help??


in reply to Running JavaScript in perl by proxy

If you want to run code in a browser (which you will need to do the XMLHttp requests) you have several choices:

Win32::IE::Mechanize and Mozilla::Mechanize are WWW::Mechanize re-implementations based on Explorer and Mozilla. I don't know much about Win32, but Mozilla::Mechanize is quite hard to install, since it has tons of dependencies.

An alternative are the Selenium modules. Those should be platform and browser independent.

  • Comment on Re: Running JavaScript in perl by proxy

Replies are listed 'Best First'.
Re^2: Running JavaScript in perl by proxy
by BaldPenguin (Friar) on May 08, 2007 at 19:52 UTC
    From what I have been told and seen to date, Mechanize and it's derivatives do not process the JavaScript within the page. Is that assessment incorrect?

    It may be possible to find the script nodes and process them with JavaScript, but that would get a little hairy when it came to the src includes inside a page.

    Don
    Everything I've learned in life can be summed up in a small perl script!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://614211]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2025-11-12 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (68 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.