<a href="Non-Sumou.html">Other GNU/Linux tips</a></p>
To determine the location of web content, i.e. flash movies etc., and download it:</p>
<ul>
<li>Install dsniff:
<table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># aptitude install dsniff</b></td></tr></table></li>
<li>Start dsniff:
<table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ sudo urlsnarf</b></td></tr></table></li>
<li>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"
</li>
<li>In the above the linev with 82218_Ruda_MARKETA_NB..flv is the line with the address of the video.</li>
<li>Having the determined the web content address, retrieve it with wget:
<table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ wget <a href="http://91.103.160.72/ram0/8/2/2/82218_Ruda_MARKETA_NB..flv">http://91.103.160.72/ram0/8/2/2/82218_Ruda_MARKETA_NB..flv</a></b></td></tr></table></li>
</ul>
Very easy, and you can retrieve any web content. <!— Page published by Emacs Muse ends here —> </div> <i>To send me feedback about this page, use the below email.</i><br /> <b>© sumoudou.org 2010</b><br /> <img style="border:0" alt="sumoudou.org" src="email.gif" width="129" height="10" /><br /> <a href="http://www.gnu.org/" style="text-decoration: none;"><img style="border:0" alt="GNU" src="powered-by-gnu.png" />]] <a href="http://www.gnu.org/software/emacs/emacs.html" style="text-decoration: none;"><img style="border:0" alt="GNU Emacs" src="made-with-emacs.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hcoop-proud-member.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hosted-by-hcoop.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="made-with-muse.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="powered-by-muse.png" />]] <br /> <a href="http://www.fsf.org/resources/formats/playogg" style="text-decoration: none;"><img style="border:0" alt="Ogg" src="play-ogg.png" />]] <a href="http://www.catb.org/hacker-emblem/" style="text-decoration: none;"><img style="border:0" alt="Glider" src="glider.png" />]] <a href="http://ubuntu.com/" style="text-decoration: none;"><img style="border:0" alt="Ubuntu" src="ubuntu.png" />]] <a href="http://validator.w3.org/check?uri=referer" style="text-decoration: none;"><img style="border:0" alt="Valid XHTML 1.0 Strict!" src="valid-xhtml10-blue.png" />]] <a href="http://jigsaw.w3.org/css-validator/check/referer" style="text-decoration: none;"><img style="border:0" alt="Valid CSS!" src="valid-css-blue.png" />]] <br />Last updated November 6, 2009
</div> <br />. </body> </html>