Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Twaffik (May 2009)

297 views

Published on

The slides from the talk given by Alan Holding at the Social Media Café Manchester on 14 May 2009 about Twaffik, a Twitter-based crowdsourced travel alert system for Manchester.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Twaffik (May 2009)

  1. 1. The slides from the talk done by Alan Holding at the Social Media Cafe Manchester on 14 May 2009 – –
  2. 2. Paul Carruthers @paulcarruthers
  3. 3. Alan Holding @boredlizard
  4. 4. What is Twaffik? (it is not a business, btw)
  5. 5. An experiment using Twitter that lets people in Manchester share transport problems
  6. 6. How does it work?
  7. 7. 1. You go on Twitter and follow @twaffik
  8. 8. 2. Twaffik follows you (which is important)
  9. 9. 3. You send Twaffik a direct message about something d twaffik man rail Blinking flip the trains from Levenshulme are late again
  10. 10. 4. Twaffik retweets the message to its followers man rail Blinking flip the trains from Levenshulme are late again
  11. 11. 5. Everyone gets depressed
  12. 12. What’ gives with the clumsy message format?
  13. 13. d twaffik man rail Blinking flip the trains from Levenshulme are late again
  14. 14. d twaffik man rail Blinking flip the trains from Levenshulme are late again d twaffik Send a direct message to Twaffik
  15. 15. d twaffik man rail Blinking flip the trains from Levenshulme are late again man Three-letter airport code for Manchester
  16. 16. d twaffik man rail Blinking flip the trains from Levenshulme are late again rail Type of transport problem
  17. 17. d twaffik man rail Blinking flip the trains from Levenshulme are late again The actual message Blinking flip...
  18. 18. d twaffik man rail Blinking flip the trains from Levenshulme are late again Only 140 characters Lots of junk before the good stuff
  19. 19. Popular? Approx 170 messages since November 2008
  20. 20. Twaffikers
  21. 21. How it really works (the technical gubbins)
  22. 22. A mix of technologies... Apache Google Twitter PHP server Mail API
  23. 23. Twaffik runs two routines every minute
  24. 24. The first checks Gmail for new followers and follows them back
  25. 25. The process starts with the emails Twitter sends out
  26. 26. Notices settings
  27. 27. We set up Gmail to attach labels to messages received from Twitter
  28. 28. Gmail labels
  29. 29. Gmail labels
  30. 30. We then scan the email header to find the username
  31. 31. X-Twittersenderscreenname: therealprez
  32. 32. We then use the Twitter API to follow that person
  33. 33. http://twitter.com/friendships/create/ therealprez.xml
  34. 34. We then change the Gmail label to stop that person being followed next time
  35. 35. Following
  36. 36. Following
  37. 37. The second script checks Gmail for direct messages and retweets them
  38. 38. Retweeting
  39. 39. Retweeting
  40. 40. To filter or not?
  41. 41. Bypass Bybeep
  42. 42. Why not use the Twitter API for everything?
  43. 43. Because it would chew up our API allowance
  44. 44. “The default rate limit for calls to the REST API is 100 requests per hour.”
  45. 45. So, what next?
  46. 46. Apply for “‘whitelisting with the Twitter API?
  47. 47. Do an iPhone app? Courtesy of Apple
  48. 48. Thanks for listening twaffik.info

×