About Me

Hi. I'm John Eckman.

John Eckman

I'm a Sr. Director at Optaros, a professional services firm offering strategy, design, development, and consulting services to enterprises interested in leveraging free and open source software.

More about me

About Open Parenthesis

Contact Me

Optaros

Dopplr
Upcoming Conferences

Web 2.0 Kongress, Hamburg

SXSW Interactive, 2009

My Tweets
  • And, of course, a freedom organic lager from staffordshire. 11 hrs ago
  • Dinner at 222 vegan veggie in west kensington. Looks awfully good - tofu medallion picatta w/ spaghetti. 11 hrs ago
  • Drupal on LAMP versus on WIMP. Discuss. Are there still *real* issues with WIMP deployments? (A client favors WIMP, we favor LAMP). 13 hrs ago
  • On that subject, compare Chris Kelty's "Two Bits" on geek culture vs. Benjamin Nugent's "American Nerd" on nerds 16 hrs ago
  • @vero I think, in the US at least, nerd is more pejorative than geek. Geek's been recuperated, Nerd is more likely socially inept. 16 hrs ago
  • More updates...

Posting tweet...

Powered by Twitter Tools.

Optaros Blogs
Affiliations

[FSF Associate Member]

Creative Commons
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.
March 6, 2008

Twitter Related Applications

Tagged with: — John @ 8:32 am

This page collects code snippets and applications related to Twitter, mostly using the Twitter API. (I’m jeckman on Twitter).

Retweeter

Retweeter is a fairly simple PHP script, designed to be run from a cron job. It was inspired by this blog post by Kosso though it doesn’t exactly follow the algorithm he outlines. Thanks also to Mark Reeves of Refresh Boston and Alex King’s TwitterTools WordPress plugin for examples on accessing the Twitter API and storing tweets.

Retweeter accesses a Twitter account and turns it into a “broadcast” repeater.

What it does is to:

  • scan the tweets of all those whom it follows
  • look in those tweets for a hashtag, which looks like “#username” (where “username” is replaced by the username of the account to which you’ve associated it)
  • When it finds tweets containing the hashtag, it retweets them, prefixed with the originator’s username

This lets you use twitter like an email list.

For example, at SXSWi 2008, I set up a twitter account called vegsxsw. Any user who is followed by vegsxsw (and I follow back everyone who follows that account) can write a tweet using the hashtag #vegsxsw, and that tweet will get reposted, prefixed by their twitter screen name.

Download Retweeter

RSS To Twitter

RSS to Twitter is a script by Paul Stamatiou - see RSS to Twitter Using PHP. Paul’s script itself relies on Last RSS.

Unfortunately for those of us on hosts like Dreamhost which do not allow fopen calls in PHP to open remote urls, the LastRSS script was failing.

All I’ve done in the below archive is to modify the Last RSS “parse.php” file included in Paul’s script to use Curl to get the RSS file, rather than fopen. This should enable it to work on more hosts.

Download RSSToTwitter

Trackback url for this post: http://www.openparenthesis.org/code/twitter-api/trackback

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>