Reputation: 879
What is the current way to download a YouTube video in FLV format using C#/.Net? (if there is any) (the idea is to make it purely desktop based)
Upvotes: 1
Views: 3068
Reputation: 8150
The "correct" way is to use their published api:
https://developers.google.com/youtube/getting_started
Update:
You might find this interesting. Here's a class to add missing download support to the APIs:
http://ytdownloadextension.codeplex.com/
Upvotes: 1
Reputation: 963
Go to youtube.com and open any video then right click on the page and select viewsource search for playerConfig you will see it is assigned with a json, it contains all the infortmation you needed. For further information you can take a look at youtubeFisher it is an opensource software so you can take a look at the source code and get your required info.
Upvotes: 3
Reputation: 14994
First solution is to use a webservice:
Make a http request (WebClient class is a good one) to http://www.icyvideo.com with the url parameter e.g. http://www.icyvideo.com/?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2Z4m4lnjxkY
Grep the site for links "Download FLY" and download the movie.
Problem with this solution is that you have to use that website and the location of the links may change. It's very quick to set up, though.
Upvotes: 2