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

Hi,
I think I have a basic handle on how to use
LWP::UserAgent and LWP::Simple; I hope
that I can figure out how to use SWF::Parse.

The problem I'm facing at the moment is that
the SWF information that I'm trying to get at is
"hidden" inside some magic JS incantation rather
than an <embed> or plain <href>.

<script language="JavaScript" type="text/javascript"> if(version==6){ drawFlashVersioned("770","525","base6.swf","base","storeFront=NZ&ses +sionId=z3k4-p0wnjLK4wIhd7n-Cw1&","6,0,0,0"); } else { drawFlashVersioned("770","525","base6.swf","base","storeFront=NZ&ses +sionId=z3k4-p0wnjLK4wIhd7n-Cw1&","7,0,0,0"); } //--> </script>


Any ideas how I might get to the SWF for processing?
The actual URL is
http://flightbookings.airnewzealand.co.nz/vgrabview/
and I'd like to write a script that alerts me when
something interesting comes up :}



Cheers, Tink

Replies are listed 'Best First'.
Re: SWF extraction ...
by Joost (Canon) on Jul 20, 2007 at 22:30 UTC
      Thanks for the links, reading up on Mozilla::Mechanise
      and WWW::Selenium now ... I'm using Linux (pretty much
      exclusively - forced to do windows stuff in a VM at work) :)


      Cheers, Tink
Re: SWF extraction ...
by aquarium (Curate) on Jul 21, 2007 at 15:11 UTC
    you could also put the initiating url into the browser and watch the url requests using ethereal or such network sniffer. you should be able to find the swf url request.
    the hardest line to type correctly is: stty erase ^H