Menu :   Home | Blogging | Categories | | Gallery About | Chat

As i started testing and creating a script for my blog sidebar column, many asked me how i did it. Well basically it is a very simply PHP script which uses Simplepie engine to create a RSS feed based on keyword matching. Basically my current sidebar script will show an RSS feed of my tweets which contains the keyword #x3m.

So in order for me to choose which tweets appear on my sidebar i simply add a channel keyword #x3m to my tweets and it will appear instantly on my sidebar. As we know Simplepie lets you recreate RSS feed out of any RSS feed with PHP coding mixed. So how to have this done? Here is the idea. Get your Twitter RSS ready, pass it into another RSS feed using Simplepie, but this time do a keyword matching using PHP to show only the tweets with the keyword and display it out.

Example (Sample Simplepie Code):

What this Simplepie code does is go through 50 of your Tweet posts and matches it with the given keyword (*uniquekey) and returns post only containing the keyword. I am sorry i could not post the entire script as the code is really messy and was only meant for usability purpose. If you need further help or assistance do get hold of me on twitter and direct message me @extremesh.

Posted at 12:53 pm on October 23rd, 2009 in Tips & Tricks with 2,216 views

Related Posts:

[ made & maintained by ramesh | get me on ]