Skip to content
WJunction - Webmaster Forum

YouTube Feed Parser [Free]

Status
Not open for further replies.

JmZ

(╯°□°)╯︵ ┻━┻
1,789
2008
729
20
Here you go:
https://github.com/jmzrlz/Utils/blob/master/youtube.class.php

Simple class to search the youtube gdata feed with a changeable result count.

Use like so:
PHP:
$test = new YouTube('some keywords here');
/*
    $test is now an iterable of results
*/
foreach($test as $video)
{
    /*
        $video is now an instance of YouTubeVideo
        It has the properties (id, title, published, category, description, link, author)
    */
    echo $video->title . "\n";
}

Enjoy.
 

1 comment

Status
Not open for further replies.

About the author

J
(╯°□°)╯︵ ┻━┻ · Joined
1,789
Messages
729
Reactions
113
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom