Forum Moderators: coopster

Message Too Old, No Replies

youtube, real url

get the real url for youtube mouvies

         

vasile_radu

1:57 pm on Apr 11, 2007 (gmt 0)

10+ Year Member



Hi,

I'm working on a web application that extracts the real url for movies on youtube, google video. So, I ask you if you can give me some hints for
finding resources on this topic, I've tried google search, but no succes. If you can, please point me up some forums on this topic, links, anything at all ...

Thanks,
Radu.

whoisgregg

2:04 pm on Apr 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Youtube provides actual URLs for the movies already. If you visit any video page, there is an input field preloaded with the embed code to display the movie on your site.

That code uses the same video id that is in the url for the movie, so there would be no need to extract the embed code programatically from the website.

vasile_radu

2:16 pm on Apr 11, 2007 (gmt 0)

10+ Year Member



By real url I ment the url from which I can download the movie.

Looking in the Page Source of a youtube window, I've found this link:


http://www.example.com/admp.swf?vids=SXcpNZCyQJw&eurl=/index&iurl= http%3A//img.example.com/vi/SXcpNZCyQJw/2.jpg&t=OEgsToPDskL2639TwSMOX4y84IVmdP5h

which opens the mouvie into a window browser ok , but I want to find the real location of the mouvie for download.

Thanks for the quick answer,

Radu.

[edited by: dreamcatcher at 2:19 pm (utc) on April 11, 2007]
[edit reason] Exemplified url, fixed side scroll. [/edit]

phparion

3:09 pm on Apr 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



youtube won't give you movie's actual downloading URL. the actual files are of .flv type. you have to do some research on it. watch different youtube movie pages and check the source , try to find the pattern how the main movie opens because there are few others on right side bar and similar movies section so you have to grab the .flv url of the main opened movie... there will be a regex used to fetch it out...

you can use PHP-cURL ...

there is already such an extension available for Firefox that helps you to download movies from google, youtube etc etc..

whoisgregg

3:13 pm on Apr 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you taken a look at the YouTube API [youtube.com]?

Also, make sure what you are trying to do fits within the YouTube TOS [youtube.com] and applicable laws.