PHP Youtube video downloader script
Published September 17th, 2008 in Downloads, PHPI was searching for a simple script which would allow me to download videos from youtube using php. I did find some implementation but only one of them worked and it used Pear. So here is a simple script to help you download videos from youtube. Allows you to download restricted videos too by logging into youtube.
The script is a simple youtube class which uses CURL.
Sample usage of the youtube class -
include(’curl.php’);
include(’youtube.php’);
$tube = new youtube();
// Only required for restricted videos
// $tube->username = “userid”;
// $tube->password = “password”;
$download_link = $tube->get($_POST['url']);
4 Responses to “PHP Youtube video downloader script”
Leave a Reply
About
You are currently browsing the NGCoders - Next Generation Coders weblog archives.


Getting the following Error
Error locating download URL.
Ragards
Aditya
Its working fine.
Tested it.. works fine… thanks very much for the code
It’s working fine now
Thanks NGCoders