Quote:
Originally Posted by Greg Marra
Brandon,
Does it make sense to release this code so other people can look at it and offer suggestions?
|
It's pretty ugly (did it real quick yesterday) .. I may release some of it, eventually.
Pulling the data from twitter is just using
magpierss to grab the twitter rss feed for the account (
http://twitter.com/statuses/user_timeline/20603824.rss) which seems to update as fast as any API call (based on my 1 quick 'test' .. that may need to be fixed if it gets too far behind). Once I grab the rss, I do a very crude parsing of the string and 'replace into' a database (keyed off an md5() of the 'pubDate' in the rss).
The front end just displays the last 50 rows .. and has an
Ajax.PeriodicalUpdater w/decay that cycles that data to the user way more than it needs to. When I get free time, I'll work on a better way to only send down new data every request .. not all data.