[Linux-disciples] Evaluating a Javascript function

Stephen R Laniel steve at laniels.org
Thu Oct 7 21:12:15 EDT 2004


I'm trying to download media from NPR's site, specifically
the RealAudio or Windows Media file here:
http://shorl.com/hirugovafemu

The media file is in one of those irritating-to-pierce
Javascript obfuscators, namely

javascript:getMedia('ATC', '05-Oct-2004', '7', 'RM,WM');

getMedia is defined here:

http://shorl.com/fomutirabrigri

I'd like to be able to write a script that could just
evaluate getMedia() with the given arguments and return for
me the bloody URL that it refers to, which I could then pass
to wget and retrieve.

I tried to figure out what the JavaScript Console in Firefox
was all about, to no avail. I thought if I just added the
getMedia() function call above into the 'evaluate' line,
that I'd get what I wanted. That didn't work.

In any case, I'd like to be able to script this, so the
Javascript Console probably isn't what I want. What would I
use?

-- 
``I am all about the delivery of *justice* to
  parking, people. That is all.''
 -Jon Sung, 27 September 2004



More information about the Linux-disciples mailing list