YouTube

$rss = fetch_rss('http://www.youtube.com/rss/tag/singapore.rss');
if ($rss) {
$items = array_slice($rss->items, 0, 20);
foreach ($items as $item)
{
$desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
preg_match(’/img src=”([^"]+)”/’,$item["description"],$imgUrlMatches);
$imgurl = $imgUrlMatches[0];
echo ‘<' . $imgurl . ' class="youtubeimage" width="100" height="97" />‘;
}
}
else {
print ‘Feed may be down’;
}
?>

 

Google News

$rss = fetch_rss('http://news.google.com/news?hl=en&ned=us&q=singapore&ie=UTF-8&output=rss');
if ($rss) {
$items = array_slice($rss->items, 0, 20);
echo ‘

    ‘;
    foreach ($items as $item)
    {
    $desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
    echo ‘
  • ‘ . $item['title'] . ‘
  • ‘;
    }
    }
    else {
    print ‘Feed may be down’;
    }
    echo ‘

‘;
?>

Technorati

$rss = fetch_rss('http://feeds.technorati.com/feed/posts/tag/singapore');
if ($rss) {
$items = array_slice($rss->items, 0, 10);
echo ‘

    ‘;
    foreach ($items as $item)
    {
    $desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
    echo ‘
  • ‘ . $item['title'] . ‘
  • ‘;
    }
    }
    else {
    print ‘Feed may be down’;
    }
    echo ‘

‘;
?>

Yahoo News

$rss = fetch_rss('http://news.search.yahoo.com/news/rss?ei=UTF-8&p=singapore&c=&datesort=1&eo=UTF-8');
if ($rss) {
$items = array_slice($rss->items, 0, 20);
echo ‘

    ‘;
    foreach ($items as $item)
    {
    $desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
    echo ‘
  • ‘ . $item['title'] . ‘
  • ‘;
    }
    }
    else {
    print ‘Feed may be down’;
    }
    echo ‘

‘;
?>

Flickr


Digg

$rss = fetch_rss('http://digg.com/rss_search?search=singapore&area=all&type=both&section=news');
if ($rss) {
$items = array_slice($rss->items, 0, 20);
echo ‘

    ‘;
    foreach ($items as $item)
    {
    $desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
    echo ‘
  • ‘ . $item['title'] . ‘
  • ‘;
    }
    }
    else {
    print ‘Feed may be down’;
    }
    echo ‘

‘;
?>

Reddit

$rss = fetch_rss('http://reddit.com/search.rss?q=singapore');
if ($rss) {
$items = array_slice($rss->items, 0, 20);
echo ‘

    ‘;
    foreach ($items as $item)
    {
    $desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
    echo ‘
  • ‘ . $item['title'] . ‘
  • ‘;
    }
    }
    else {
    print ‘Feed may be down’;
    }
    echo ‘

‘;
?>

del.icio.us

$rss = fetch_rss('http://del.icio.us/rss/tag/singapore');
if ($rss) {
$items = array_slice($rss->items, 0, 20);
echo ‘

    ‘;
    foreach ($items as $item)
    {
    $desc = htmlspecialchars(substr(strip_tags($item['description']),0,300));
    echo ‘
  • ‘ . $item['title'] . ‘
  • ‘;
    }
    }
    else {
    print ‘Feed may be down’;
    }
    echo ‘

‘;
?>