|
|
|
|
![]() ![]() |
May 26 2008, 02:01 PM
Post
#1
|
|
|
Newbie [Level 2] ![]() ![]() Group: [HOSTED] Posts: 39 Joined: 26-May 08 Member No.: 62,700 |
With this how to you'll find out how to download videos from youtube without using any software or website.
1. Retrieve the id video from the link (the code after ‘v=’) example: http://www.youtube.com/watch?v=muP9eH2p2PI => muP9eH2p2PI 2. In your favourite browser go to http://youtube.com/v/{ID video} example: http://youtube.com/v/muP9eH2p2PI 3. Link in the address bar will change. Replace ’swf/l.swf’ with ‘get_video’ and press Enter 4. Save your file Here it's a little php code that will do this stuff CODE <?php $idvideo = $_GET['link']; $base = 'http://it.youtube.com'; $url_parsed = parse_url("$base/v/$idvideo"); $host = $url_parsed['host']; $path = $url_parsed['path']; $out = "HEAD $path HTTP/1.0\r\nHost: $host\r\n\r\n"; $fp = fsockopen($host, 80, $errno, $errstr, 30); fwrite($fp, $out); while (!feof($fp)) { $line = fgets($fp, 8192); if (preg_match('/Location/', $line)){ die("Link : $base".preg_replace(array('/^Location: /','/swf\/l\.swf/'), array('','get_video'), $line)."\n"); } } ?> Byez |
|
|
|
May 31 2008, 08:42 PM
Post
#2
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 25 Joined: 15-January 08 Member No.: 56,299 |
With this how to you'll find out how to download videos from youtube without using any software or website. 1. Retrieve the id video from the link (the code after ‘v=’) example: http://www.youtube.com/watch?v=muP9eH2p2PI => muP9eH2p2PI 2. In your favourite browser go to http://youtube.com/v/{ID video} example: http://youtube.com/v/muP9eH2p2PI 3. Link in the address bar will change. Replace ’swf/l.swf’ with ‘get_video’ and press Enter 4. Save your file Here it's a little php code that will do this stuff CODE <?php $idvideo = $_GET['link']; $base = 'http://it.youtube.com'; $url_parsed = parse_url("$base/v/$idvideo"); $host = $url_parsed['host']; $path = $url_parsed['path']; $out = "HEAD $path HTTP/1.0\r\nHost: $host\r\n\r\n"; $fp = fsockopen($host, 80, $errno, $errstr, 30); fwrite($fp, $out); while (!feof($fp)) { $line = fgets($fp, 8192); if (preg_match('/Location/', $line)){ die("Link : $base".preg_replace(array('/^Location: /','/swf\/l\.swf/'), array('','get_video'), $line)."\n"); } } ?> Byez Heh. Great little tip. Helped me a load! Thanks! |
|
|
|
Jun 1 2008, 11:53 AM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 173 Joined: 29-May 08 From: Jakarta, Indonesia Member No.: 62,844 |
Whoa thank you Framp, you've posted a nice trick! I'm tired using websites and programs to download these videos
|
|
|
|
Jun 1 2008, 01:12 PM
Post
#4
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 12 Joined: 1-June 08 Member No.: 62,955 |
THANK YOU SO MUCH, i been waiting over a year to find out howto do this!!!
|
|
|
|
Jun 1 2008, 06:17 PM
Post
#5
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 61 Joined: 1-June 08 Member No.: 62,997 |
Thanks Framp, i think that will add YouTube downloader to my web, it looks easy.
Regards |
|
|
|
Jun 1 2008, 07:15 PM
Post
#6
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 18 Joined: 1-June 08 Member No.: 63,000 |
wow i had no clue you could do that with the php code. those programs that convert the videos are not reliable.
Thanks for the tips! |
|
|
|
Jun 2 2008, 04:18 AM
Post
#7
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 68 Joined: 21-May 08 Member No.: 62,444 |
really simple and useful piece of code... any idea regarding privacy/policy/legal aspects of, say, putting such a service on your website?
|
|
|
|
Jun 2 2008, 03:40 PM
Post
#8
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 21 Joined: 4-March 08 Member No.: 58,832 |
I am not good with codes and stuff, so for those who need a simpler way, go to www.keepvid.com, copy the video's url in the box provided and press download. After the download is complete, rename the file to [name].flv .
This site also helps you to download videos from some other video sites. There is also an FLV player you can download from here. |
|
|
|
Jun 2 2008, 11:34 PM
Post
#9
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 2-June 08 Member No.: 63,062 |
thank youu so much
now i can download any video yeahhhhhhhhhhhhhhh |
|
|
|