[MPlayer-users] Any Suggestion as to How to Get This NPR File?

RC rcooley at spamcop.net
Tue Sep 5 00:47:22 CEST 2006


On Mon, 04 Sep 2006 17:06:05 -0500
Martin McCormick <martin at dc.cis.okstate.edu> wrote:

> As I like to say, javascript is a cure for which there was no known
> disease.

Nicely put.

> 	Is there any good way to get past this and download the
> good stuff when we come across it and it is locked up in one of
> these type sites?  

Well, having a working javascript engine you can use, certainly helps. 
Mozilla's is open source, so if someone was willing to perhaps adapt it
to work with Links, you could use js just as well Firefox users.

But more to the point, site-by-site workarounds are all you can hope-for
right now.  

For instance, if you mouse-over that link, it is: 
 javascript:getMedia('ATC', '02-Sep-2006', '5', 'RM,WM');

That sends you to:
npr.org/dmg/dmg.php?prgCode=ATC&showDate=02-Sep-2006&segNum=5

So, if you bookmark that URL, and substitute those "showDate" and
"segNum" values, you should be able to get access to any streams on npr.

For cbsnews video, I found that the javascript link contained the full
URL to the file, so I just wrote-up a simple regex for Privoxy
(filtering proxy) which stripped the "javascript:xyz(  );" part, giving
a clickable link to the media file.  Dunno if that trick still works
these days.  npr isn't quite as easy, but certainly possible to handle
it's javascript links in the same way. 

Of course, this is only an example (for use on other sites) because NPR
has a link to the text-only (non-javascript) version of their website at
the bottom of the page.  You just need to change "npr.org" in any of the
URLs to "thin.npr.org" and you'll get the page without graphics, and
without javascript.



More information about the MPlayer-users mailing list