YouTube - API Extraction Tool
YouTube API - XML Feed Ripper DOWNLOAD SOURCE (*.ZIP) I created this tool because I could not find a tool that met my needs. I wanted a simple feed extraction tool that would just post up some dynamic content from YouTube. It turned into a class which is actually pretty easy to use. The Class has 3 main functions:
- yt_featured();
- yt_user();
- yt_tag();
Each function uses different arguments to extract the videos you want from the YouTube API. All the functions use your dev ID and a return number to pull in however many videos you want to list. If the return number is left blank it will return all relative videos from the API request string. Otherwise if you ask for 25 and only 23 are available it will return on 23. Simple error checking I know, but its important. Prep // first instantiate your class
$yt = new youTube;
Example 1: $yt->yt_featured("dev_ID", 0);
In this example it pulls all of the featured videos from the "youtube.videos.list_featured" method. Example 2: $yt->yt_user("dev_ID", "username", 0);
In this example it pulls all videos from a specific user through the "youtube.videos.list_by_user" method. Example 3: $yt->yt_tag("dev_ID", "tag", 0);
In this example it pulls all videos that match a specific tag through the "youtube.videos.list_by_tag" method.
Well thats pretty much it. Very basic probably poorly coded, but I look forward to seeing what the developer community is going to do with it. I hope that everyone keeps me posted on upgrades to my script. I leave it your hands to do with what you want. Just leave me on the credit somewhere as the originator. DOWNLOAD SOURCE (*.ZIP)
|