The RSS feed for Youtube videos with Hash House Harriers for instance would be\\
<nowiki>
https://gdata.youtube.com/feeds/api/videos?q=hash+house+harriers&orderby=relevance
</nowiki>

You can see feeds for various social sites [[http://www.labnol.org/internet/rss-feeds-directory/21242/|here]]

So lets use SimpleXML to extract data from the feed. I won't go into the details because an excellent tutorial already exists on [[http://www.youtube.com/watch?feature=player_embedded&v=4ZLZkdiKGE0#!|Youtube]]

So the code
<code>
<?php
$html ="";
$url="https://gdata.youtube.com/feeds/api/videos?q=hash+house+harriers&orderby=relevance";

$xml=simplexml_load_file($url);
// show only the first 5 entries
for ($i=0;$i<5;$i++){
 $id=$xml->entry[$i]->id;
// remove the bits we don't need from the id
 $id=str_replace("http://gdata.youtube.com/feeds/api/videos/","",$id);
 $title=$xml->entry[$i]->title;
 $content=$xml->entry[$i]->content;
 $author=$xml->entry[$i]->author->name;
 $html .= "<div><h3>$title</h3><iframe width='420' height='315' src='http://www.youtube.com/embed/$id' frameborder='0' allowfullscreen></iframe><br />$author<br />$id<br />$content</div><hr />"; 
}
echo $html;
?>
</code>
