Custom Youtube download script for sale

Status
Not open for further replies.

blackthought286

New member
Jul 10, 2006
159
1
0
Harlem, NYC
Rating - 0%
0   0   0
This is a custom coded script for downloading youtube videos to your computer. Place it in your web page and allow your visitors to download their favorite videos onto their computer without a firefox plugin.

This is not a web page but the script to place on your web page. Just place the form and a 7 line script on your page and it's easy as that. The script is $10.00. You server must be php and have curl enabled in which most do.

I am only selling 15 copies on here and other forums all together for right now. I may decide to open it up later. This script comes with free updates when youtube makes changes that affect the script.

For a quick example of the script please pm me and I will send a link.
 


You mean this script (or something like the 20 other similar php scripts on the web?)

http://immike.net/scripts/youtube-user.phps

Code:
[COLOR=#000000][COLOR=White]
ini_set[/COLOR][COLOR=White]([/COLOR][COLOR=White]'memory_limit'[/COLOR][COLOR=White], [/COLOR][COLOR=White]'1024M'[/COLOR][COLOR=White]);
if(!([/COLOR][COLOR=White]$argv[/COLOR][COLOR=White][[/COLOR][COLOR=White]1[/COLOR][COLOR=White]] && [/COLOR][COLOR=White]$argv[/COLOR][COLOR=White][[/COLOR][COLOR=White]2[/COLOR][COLOR=White]]))
  die([/COLOR][COLOR=White]"Usage: php youtube-user.php <username> <pattern>\n"[/COLOR][COLOR=White]);

[/COLOR][COLOR=White]$user [/COLOR][COLOR=White]= [/COLOR][COLOR=White]$argv[/COLOR][COLOR=White][[/COLOR][COLOR=White]1[/COLOR][COLOR=White]];
[/COLOR][COLOR=White]$pattern [/COLOR][COLOR=White]= [/COLOR][COLOR=White]$argv[/COLOR][COLOR=White][[/COLOR][COLOR=White]2[/COLOR][COLOR=White]];

echo [/COLOR][COLOR=White]"Attempting to download all videos by user $user matching the pattern '$pattern'\n"[/COLOR][COLOR=White];

[/COLOR][COLOR=White]$file [/COLOR][COLOR=White]= [/COLOR][COLOR=White]file_get_contents[/COLOR][COLOR=White]([/COLOR][COLOR=White]'http://www.youtube.com/profile?user='[/COLOR][COLOR=White].[/COLOR][COLOR=White]$user[/COLOR][COLOR=White]);
[/COLOR][COLOR=White]preg_match_all[/COLOR][COLOR=White]([/COLOR][COLOR=White]'!(watch\?v=[A-Za-z0-9]{11}).*?'[/COLOR][COLOR=White].[/COLOR][COLOR=White]$pattern[/COLOR][COLOR=White].[/COLOR][COLOR=White]'!'[/COLOR][COLOR=White], [/COLOR][COLOR=White]$file[/COLOR][COLOR=White], [/COLOR][COLOR=White]$matches[/COLOR][COLOR=White], [/COLOR][COLOR=White]PREG_PATTERN_ORDER[/COLOR][COLOR=White]);
[/COLOR][COLOR=White]$titles [/COLOR][COLOR=White]= [/COLOR][COLOR=White]array_unique[/COLOR][COLOR=White]([/COLOR][COLOR=White]$matches[/COLOR][COLOR=White][[/COLOR][COLOR=White]1[/COLOR][COLOR=White]]);

foreach([/COLOR][COLOR=White]$titles [/COLOR][COLOR=White]as [/COLOR][COLOR=White]$title[/COLOR][COLOR=White])
{
  [/COLOR][COLOR=White]$page [/COLOR][COLOR=White]= [/COLOR][COLOR=White]file_get_contents[/COLOR][COLOR=White]([/COLOR][COLOR=White]'http://www.youtube.com/'[/COLOR][COLOR=White].[/COLOR][COLOR=White]$title[/COLOR][COLOR=White]);
  [/COLOR][COLOR=White]preg_match[/COLOR][COLOR=White]([/COLOR][COLOR=White]'!<title>(.*?)</title>!'[/COLOR][COLOR=White], [/COLOR][COLOR=White]$page[/COLOR][COLOR=White], [/COLOR][COLOR=White]$matches[/COLOR][COLOR=White]);
  echo [/COLOR][COLOR=White]'Downloading '[/COLOR][COLOR=White].[/COLOR][COLOR=White]$matches[/COLOR][COLOR=White][[/COLOR][COLOR=White]1[/COLOR][COLOR=White]].[/COLOR][COLOR=White]"\n"[/COLOR][COLOR=White];

  [/COLOR][COLOR=White]preg_match[/COLOR][COLOR=White]([/COLOR][COLOR=White]'!video_id=.*&t=[^\"&]*!'[/COLOR][COLOR=White], [/COLOR][COLOR=White]$page[/COLOR][COLOR=White], [/COLOR][COLOR=White]$matches[/COLOR][COLOR=White]);
  [/COLOR][COLOR=White]$video [/COLOR][COLOR=White]= [/COLOR][COLOR=White]'http://youtube.com/get_video?'[/COLOR][COLOR=White].[/COLOR][COLOR=White]$matches[/COLOR][COLOR=White][[/COLOR][COLOR=White]0[/COLOR][COLOR=White]];

  [/COLOR][COLOR=White]$video_file [/COLOR][COLOR=White]= [/COLOR][COLOR=White]file_get_contents[/COLOR][COLOR=White]([/COLOR][COLOR=White]$video[/COLOR][COLOR=White]);
  [/COLOR][COLOR=White]$parts [/COLOR][COLOR=White]= [/COLOR][COLOR=White]explode[/COLOR][COLOR=White]([/COLOR][COLOR=White]'='[/COLOR][COLOR=White], [/COLOR][COLOR=White]$title[/COLOR][COLOR=White]);
  [/COLOR][COLOR=White]file_put_contents[/COLOR][COLOR=White]([/COLOR][COLOR=White]$parts[/COLOR][COLOR=White][[/COLOR][COLOR=White]1[/COLOR][COLOR=White]].[/COLOR][COLOR=White]'.flv'[/COLOR][COLOR=White], [/COLOR][COLOR=White]$video_file[/COLOR][COLOR=#007700][COLOR=White]);
}[/COLOR]
[COLOR=White]
[/COLOR]
[/COLOR][/COLOR]
 
If no one wants it fine. This is a custom script I maintain when youtube changes their code. This is my own personal implementation not a open source or free version. I saw a bunch of free versions as well and half available didn't work anymore because of no updates. Which is why I made a custom version in the first place.
 

you mean when they changed their url

Code:
<?php
$videoid=$_GET["videoid"];
$url="http://www.youtube.com/api2_rest?method=youtube.videos.get_video_token&video_id=$videoid";
$t = trim(strip_tags(@file_get_contents($url)));
$url = "http://www.youtube.com/get_video.php?video_id=" . $videoid . "&t=" . $t;
header("Location: $url");
?>
By the way that was another free one above, which might be interesting if your script is exactly the same, since its 7 lines.
 
First of all you posted a script which uses file_get_contents that a lot of host turn off because of security issues. Second there has been changes to more than the url through the years with youtube serving videos. hence why I made mine's in the first place. You posted the code, you pointed people towards free version which they could have done if they looked at google, what else do you want. I am still selling my version to anyone who wants it, if not I will continue using it myself. No big deal.
 
Yeah I know, I was just giving a heads up that copied as is, the script wouldn't work. I have no problem with people knowing and using a free versions that are out there. I get request all of the time for custom work for downloaders for different sites and I decided to sell one of the scripts that I use.
 
Yeah I know, I was just giving a heads up that copied as is, the script wouldn't work. I have no problem with people knowing and using a free versions that are out there. I get request all of the time for custom work for downloaders for different sites and I decided to sell one of the scripts that I use.

That's great. Now try making a script that doesn't have free versions all over the web - or making one with features that actually make it worthy of paying for. Then you might actually make some sales.
 
Or I can keep it up, no harm no foul. If people want it fine, if not oh well. Point links to the free versions and anyone who wants help can come to me. That way everyone is happy.
 
Or I can keep it up, no harm no foul. If people want it fine, if not oh well. Point links to the free versions and anyone who wants help can come to me. That way everyone is happy.

If it's truly your creation from scratch then I'm sorry. However lately it seems like anyone comes here selling a very small script (ie: 7 lines) for 10$ (the price of me to actually work fixing up someone's landing page within half an hour), most of the time it turns out that the person just downloaded a free script and attempts to resell it. Thus the negative response.
 
since you are posting scripts you might want to give the people who are not coders a heads up on where to place that header function

In a file of it's own such as youtube.php , and linked such as
Code:
<a href="mydownloader.php?videoid=ID_HERE">
or would could create a get_video.php page, then put the code above into get.php

get_video.php (in it's simplest form)
Code:
<html>
<body>
<form action="get.php" method="get">
<input type="input" name="vidid" id="vidid" />
<input type="submit"/>
</body>
</html>
get.php
Code:
[FONT=monospace]<?
$videoid=$_GET["vidid"];
$url="http://www.youtube.com/api2_rest?method=youtube.videos.get_video_token&video_id=$videoid";
$t = trim(strip_tags(@file_get_contents($url)));
$url = "http://www.youtube.com/get_video.php?video_id=" . $videoid . "&t=" . $t;
header("Location: $url");
?>
[/FONT]


(and course we both know that can be done up nicer with more descriptive form, and actual mime type mentioned in the get.php)

Now what would be neat to see, is the script convert it from an FLV into an avi/mp4/wmv/rm of your choice before sending it to you. :D
 
I accept the apology but the script itself is not 7 lines just the part that goes on the page where you will place the form. I tried to make it small on the main page so it wouldn't interrupt other code or html that was already on there. I will change my description if this is what is confusing people.

I would never sell a free script that is already available. I made this version of the script over a year ago and only put it up for sale because so many people had problems with the other ones.

Again no harm, no foul
 
You can use vixy.net : Online FLV Converter : Download online videos direct to PC / iPod / PSP. It's free! open source converter mpeg4 engine. I was actually working on this but will need a new vps before I really start work. As far as wmv and rm files thats a whole different ball game.

I already got a script being a youtube clone of sort, upload any format such as mp4, avi, wmv, mov, rm, etc and it'll convert it to flv as it uploads, then it gets stored in the database with flv file on server and plays back just like youtube. Course the trial of the sothink flv engine library limits the video to 3 minutes, otherwise you have to pay 600$ for the binary without limitation (the fvec binary). It uses ffmpeg as the driving engine behind it, but handles the decoding of all those formats itself. So you're paying more for the decode than the encode.

Basically if you figured out an upload code that mimics youtube way of doing things and could handle a good variety of files for half the price of sothink, you'd have some good business.
 
Status
Not open for further replies.