Jump to content

YouTube FLV


The Little Guy

Recommended Posts

Go to a YouTube video and type this into your url bar

 

javascript:window.location.href%20=%20'http://youtube.com/get_video?video_id='%20+%20swfArgs['video_id']%20+%20"&fmt=22"%20+%20"&l="%20+%20swfArgs['l']%20+%20"&sk="%20+%20swfArgs['sk']%20+%20'&t='%20+%20swfArgs['t'];

Link to comment
https://forums.phpfreaks.com/topic/175403-youtube-flv/#findComment-924399
Share on other sites

Try this one instead

 

javascript:if(document.location.href.match(/http:\/\/[a-zA-Z\.]*youtube\.com\/watch/)){document.location.href='http://www.youtube.com/get_video?fmt='+(isHDAvailable?'22':'18')+'&video_id='+swfArgs['video_id']+'&t='+swfArgs['t']}

Link to comment
https://forums.phpfreaks.com/topic/175403-youtube-flv/#findComment-924494
Share on other sites

Garethp's Javascript would only download the current FLV file, if you want to view the actual files then I think they would be stored outside the public access directory and are purely parsed/steamed on request.

 

I have my own version of a "YouTube Ripper", that a wrote purely because a friend asked me to fix one he found, that was badly coded. (I'll have a look for it)

Link to comment
https://forums.phpfreaks.com/topic/175403-youtube-flv/#findComment-924500
Share on other sites

I'm about to go to bed now, so i'll fing out the code in the morning

but a quick how to

 

go to youtube load up a video, and take note of the v= in the URL

ie

http://www.youtube.com/watch?v=okoPt9WIoDQ

$V = okoPt9WIoDQ;

Then View Source and find var swfArgs

Now on that long line your find "t": after that is the token

ie

"t": "vjVQa1PpcFMUrnFuKkS6Z9g3DPHo%3D"

$Token = vjVQa1PpcFMUrnFuKkS6Z9g3DPHo%3D

$V = okoPt9WIoDQ

 

Once you have both of these, add them to the following URL

http://www.youtube.com/get_video?video_id=$V&t=$Token

 

so the final URL for the FLV is

http://www.youtube.com/get_video?video_id=okoPt9WIoDQ&t=vjVQa1PpcFMUrnFuKkS6Z9g3DPHo%3D

 

Hope that makes sence

Link to comment
https://forums.phpfreaks.com/topic/175403-youtube-flv/#findComment-924558
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.