Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to handle javascript

by andyford (Curate)
on Jan 27, 2007 at 22:56 UTC ( [id://596915]=note: print w/replies, xml ) Need Help??


in reply to How to handle javascript

Expanding on Joost's comments, I have so far worked on page by page basis using Live HTTP headers in firefox to work out what is being sent by the browser after the java script processing.
Someday I'd like to try JavaScript::SpiderMonkey. shmem discussed it here.

non-Perl: Andy Ford

Replies are listed 'Best First'.
Re^2: How to handle javascript
by Alien (Monk) on Jan 27, 2007 at 23:06 UTC
    How can a proxy be set with those clones?
      AFAIK those clones honour the http_proxy environment variable, e.g. on UNIX (sh, bash,...):
      $ export http_proxy=http://proxy.example.com:3128/ $ perl myclonescript.pl

      then the "clone" in the myclonescript.pl will connect any site through proxy.example.com.

      Or set it inside the script:

      BEGIN { $ENV{http_proxy} = 'http://proxy.example.com:3128/'; } use WWW::Mechanize ...

      Note that the environment variable must be set before any "clone" module is loaded.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      Mechanize uses LWP::UserAgent, so you can set proxies the same way.


      ($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
      =~y~b-v~a-z~s; print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-19 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found