Other GNU/Linux tips
To determine the location of web content, i.e. flash movies etc., and download it:
- Install dsniff:
| # aptitude install dsniff |
- Start dsniff:
- Then surf to the webpage from which you wish to download the content and start playing it, waiting till any intro ads etc. finish and the movie itself starts playing. In the terminal where urlsnarf is running you will see a record of all the internet activity, with appropriate addresses:
[01/Jul/2008:10:23:22 +0200] "GET http://spir.hit.gemius.pl/_1214900602651/reppdot.js?l=12&id=AphKT_Muc9BEkXgJ.yla6MTVPw1NkAbrwJTQDLjkvDr.g7;ref=;href=http%3A//www.stream.cz/video/3/82218-ruda-z-ostravy-marketa;&tz=-120&screen=1920x1200&col=24 HTTP/1.1" - - "http://spir.hit.gemius.pl/gemiusaudience.html" "Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9) Gecko/2008061015 Firefox/3.0"
[01/Jul/2008:10:23:22 +0200] "GET http://adserver.itsfogo.com/default.aspx?t=f&v=1&zoneid=28700 HTTP/1.1" - - "http://www.stream.cz/video/3/82218-ruda-z-ostravy-marketa" "Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9) Gecko/2008061015 Firefox/3.0"
[01/Jul/2008:10:23:22 +0200] "GET http://91.103.160.72/ram0/8/2/2/82218_Ruda_MARKETA_NB..flv?client=984554737497&event=start&ctype=flashgen&rand=yxbce HTTP/1.1" - - "-" "Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9) Gecko/2008061015 Firefox/3.0"
- In the above the linev with 82218_Ruda_MARKETA_NB..flv is the line with the address of the video.
- Having the determined the web content address, retrieve it with wget:
Very easy, and you can retrieve any web content.