| View previous topic :: View next topic |
| Author |
Message |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Nov 11, 2008 8:54 pm Post subject: [PHP] YouTube video what-not r02 |
|
|
So I've decided to post small bits and pieces of things I work on, just for fun.
Todo:
Database (SQL), search function, video player
Update 02:
Added URL and page method to get Video ID
Added "escapeshellcmd" before executing command wtih exec
Added extended video information
Added .gif encoder for the smaller thumbnails, requires GD library "GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu"
Fix:
Last second error
Update 01:
Added http_get method suggest by nog_lorp
This will get the video ID, "t" value needed for downloading a video, FLV and MP4 download links, and the YouTube thumbnail of the video.
The reason my post is so short, is because Firefox portable doesn't like flash.
The script also contains a video downloader by use of 'wget'. You can find compiled binaries all over the internet... but be warned, exec is dangerous!
In-browser sample:
Revision 02 (latest) here: http://forum.cheatengine.org/download.php?id=44589
Revision 01 here: http://forum.cheatengine.org/download.php?id=44805
Last edited by compactwater on Sat Nov 15, 2008 3:58 pm; edited 5 times in total |
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Tue Nov 11, 2008 9:16 pm Post subject: |
|
|
Looks pretty cool! Great job
_________________
Blog
| Quote: | Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that |
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Wed Nov 12, 2008 9:56 am Post subject: |
|
|
Heyy compactwater,
Nice to see you're in PHP as well
Good job and welcome back.
|
|
| Back to top |
|
 |
CRISISxCupid I post too much
Reputation: 1
Joined: 09 Jun 2007 Posts: 2256
|
Posted: Thu Nov 13, 2008 11:32 am Post subject: |
|
|
Please make it for Veoh also.
_________________
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Thu Nov 13, 2008 6:39 pm Post subject: |
|
|
| iNcorrection wrote: | | Please make it for Veoh also. | From what I know, Veoh bans IPs that download their videos from a source other than the site itself.
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Fri Nov 14, 2008 6:42 pm Post subject: |
|
|
| nog_lorp wrote: | Use HTTP Referer header to fool them. (Header should be spelled "Referer" even though that is wrong, the RFC spec has it spelled wrong D .
Also, use the PHP HTTP extension and use http_get. Then it is simple to set the HTTP Referer, and you can also use the onprogress option to update a progress bar. From there, although it isn't uber useful for youtube, I'd say implement multiple download streams for practice (use the resume option). | Thanks for the suggestion.
Added http_get method.
"youtube01.php" is the latest version.
Also going to add more preg_match options to get extended information about the video (Description, author, views, etc.)
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Fri Nov 14, 2008 8:56 pm Post subject: |
|
|
Ooo, XML.
I'll get onto implementing that.
...
Done.
|
|
| Back to top |
|
 |
|