开发者

Downloading You tube videos? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question 开发者_JAVA技巧

I want to download you tube videos programatically (using Java). How can i convert you tube video link to a downloadable URL.

Browser plays youtube videos with following code.

I tried downloading from URL http://www.youtube.com/v/OdAE3cWlmHw but it is not returning video bytes.

Thanks Lalit


Youtube API allows you to search & list videos and obtain the mediaplayer URL, so that you can play videos within your web page

Youtube Data API

Youtube Java Data API - Search and List Videos

Youtube Java Data API - Getting Started

It does not allow you to download the byte content of videos - because Google is protecting their own rights and the rights of the content creators.

Google API Terms of Service
Prohibitions:

Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to:
...

  • promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API;
  • access any portion of any YouTube audiovisual content by any means other than use of a YouTube player or other video player expressly authorized by YouTube;
  • store copies of YouTube audiovisual content;
    ...


Look at the dosens of extension for Firefox about downloading Flash video's. Downloadhelper and Flash Video Helper. If you look in the source you will find how to download the video. From what i remember is that it parses the HTML page for an id and session and use that in an url to download the video.

Similar question found only in C#. Watch the sources and you can recreate it in java C#: Downloading video from YouTube


this site has something.. for your need!

http://mashable.com/2009/02/13/youtube-toolbox/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜