how to make youtube video downloader search websites | infoBlog.tk

Hay friends now you can do all thinks tricks and tips Facebook hack And Facebook page

MAKE a YouTube video downloader in PHP


YouTube is the most popular video sharing platform and videos is watched online. However, sometimes we have a need to get the video for offline uses or you don’t want the watermark of YouTube on the video or even you want to use YouTube as a free video host and YouTube didn’t provide any ways to get the raw video. So in this post, I’m teach you how to do it in PHP (so you can embed the video easily in your website).
By reverse engineering the YouTube embed player, we know that the player will issue a HTTP request to http://youtube.com/get_video_id?video_id=THE_VIDEO_ID to get information about a specific video. The result of the request contains a URL-encoded string that has the video’s location. So, we need to get that part first.
The stream is also different sets of URL-encoded data separated by a comma. In order to retrieve all the streams, we need to turn it into an array by using explode(',',$streams).
After that, we need to loop through all the streams. Now it goes to the main part: select an appropriate stream and get its data.
The script is finished. Now you can call it like this after you’ve put it to the server:
It can be turned into a streaming script that streams YouTube videos to the client also. Happy downloading YouTube videos!



download script from  HERE



Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post