Better and Enhanced Blippr RSS Feed
7:55 pm on March 21st, 2010 | Hits: 168
Posted in My Workshop


I use Blippr service to write tiny reviews of things i encounter in my life and i want this tiny reviews to appear in my micro blogging service (eg. Friendfeed or Twitter). No offence to Blippr, but i simply find their RSS Feed to be ‘not usable’. In order for me to have a better and enhanced RSS, i worked into Blippr API and came up with this script which gives a better touch to Blippr RSS.

Demo:
Click Here to check out how Blippr’s current RSS looks like and Click Here to see how i enhanced the RSS service by using their API and some PHP coding.

The Script:

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<rss version="2.00">
<channel>
<title>Blippr RSS Enhanced</title>
<link>http://ramesh.ws</link>
<description>My RSS For Blippr.com</description>
<language>en-us</language> 

<?php

// Replace <username> with your blippr username and <apikey> with your blippr apikey
$blips = simplexml_load_file('http://api.blippr.com/v2/profiles/<username>/blips.xml?apikey=<apikey>');

// It will show 10 entries
for ( $i = 0; $i < 10; $i += 1) {
$blippr_title = $blips->review[$i]->title->attributes()->name;
$blippr_type = $blips->review[$i]->title->attributes()->media_type;
$blippr_review = $blips->review[$i]->reviewtext;
$blippr_date = $blips->review[$i]->attributes()->created_at;
$blippr_link = $blips->review[$i]->url;
$blippr_image = $blips->review[$i]->title->images->medium;

echo "
 <item>
 <title>Review on '$blippr_title'</title>
 <link>$blippr_link</link>
 <description><![CDATA['$blippr_title ($blippr_type)' - $blippr_review<br /><br /><a href=\"$blippr_link\"><img src=\"$blippr_image\"></a>]]></description>
 <pubDate>$blippr_date</pubDate>
 </item>
 ";
}

?>
</channel>
</rss>

Simply replace with your Blippr username and with your Blippr api key and save the file as blippr.php (or anything you like) and you are done. If you have any queries just post in the comments. Hope this script helps and makes Blippr a more enjoyable place :)





Related Posts

Adding Vimeo To FriendFeed - Posted @ 8:53 pm on January 4th, 2009
Display Simplepie RSS Feed In Reverse Order - Posted @ 11:45 pm on February 28th, 2010
Redirect Page Based On Domain Names - Posted @ 7:10 pm on August 5th, 2009


Recommended



Comments

Leave a comment:

Your comment :

 
About Me

I'm ramesh from Perak, Malaysia. Blogging is my hobby hence this blog is my second home to share my life, interests and etc.



Blog Menu



Recent Friends



 

page made and maintained by mesh