Final Thoughts
In this chapter, you've seen how YouTube's API works, how to circumvent YouTube's restrictions for downloading videos, how to convert video files easily using ffmpeg, how to programmatically sync videos to iTunes and Zune, and how to put it all together in one application.
Although InnerTube will never replace YouTube (nor was it designed to), I can't tell you how many times I have ended up stuck somewhere with either my Zune or my laptop with time to kill but no Internet connection. Then I excitedly remember that I have a fresh new set of popular YouTube videos downloaded to my hard drive to watch and entertain myself.
You can of course adapt this code to work with other Flash video websites, such as Break.com or CollegeHumor.com, and build a way to automatically download and convert any Flash video on the Web!
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access