And again i searched the internet for some “easy” script to grab/download youtube movies to my own server.
I failed! So wrote my own.

Let me explain the steps or jump over to the VERY short working code:

First step we need to do 3 things:

*1: make a request to youtube for getting the required data
*2: make a second request to really get the .FLV file
*3: save the data to a file

*1: make a request to the url, in this case it is:

(just grabbed a url dont look at the content of it :) )
(continue reading…)