blog.sspboyd.ca

  • Archive
  • RSS
  • Ask me anything

18147 tweets about the Toronto Mayoral election

Toronto Mayoral Election: @RobFordTeam vs @G_Smitherman vs @JPantaloneToronto Mayoral Election: @RobFordTeam vs @G_Smitherman vs @JPantalone

  • Tweets with @RobFordTeam are in red. 
  • Tweets with @G_Smitherman are in purple.
  • Tweets with @JPantalone are in teal 
  • Tweets mentioning two or more are multicoloured.
  • Tweets mentioning none of them are transparent.

Tweets were gathered from searching via the api for: 

#voteTO OR #RobFord OR #Smitherman OR #Pantalone OR “Rob Ford” OR “George Smitherman” OR “Joe Pantalone” OR @g_smitherman OR @robfordteam OR @jpantalone OR from:robfordteam OR from:g_smitherman OR from:jpantalone OR to:robfordteam OR to:g_smitherman OR to:jpantalone since:2010-10-24 until:2010-10-25


First version. Just highlighted Ford and Smitherman in red and blue.

Toronto Mayoral Election: Rob Ford vs George SmithermanToronto Mayoral Election: Rob Ford vs George Smitherman

  • Tweets with @RobFordTeam are in red. 
  • Tweets with @G_Smitherman are in blue. 
  • Tweets mentioning both are in black.
    • #processing.org
    • #twitter
    • #election
    • #api
    • #toronto
    • #mayor
  • 1 year ago
  • Permalink
  • Share
    Tweet

#VoteTO election night tweets

  1. Mike Ferrier mferrier Nobody in Toronto can ever make fun of the US electing Bush ever again. #VoteTO 26 Oct 2010 
  2. tapesonthefloor tapesonthefloor I, for one, welcome our new Marshmallow Man overlord. RT @coreypierceart ALL HAIL MAYOR STAYPUFT #fordTO #voteTO 26 Oct 2010
  3. john papamarko johnpapa Can we PLEASE refer to Rob Ford as “Mayor Double Down”? He’s greasy, filled w/ cheese and generally bad for the health of the city. #voteTO 26 Oct 2010
  4. Tony Clement TonyClement_MP There are too many sore losers on Twitter. If your candidate got trounced stop blaming the electorate. 26 Oct 2010
  5. Patrick Imbeau silentpat3d My students have #epicfail writing skills but they pale in comparison to Toronto’s #epicfail voting skills #voteTO 26 Oct 2010
  6. kim kimtarlo RT @sherm85: RT @JasonJHughes: Rob Ford is the Nickelback of Mayors. All the votes, yet no one admits to voting for him. #voteTO 26 Oct 2010
  7. Sofi P. sexytypewriter I just got back from Back to the Future and would like to fly the Delorean to 2014 when Adam Vaughan is Mayor of Toronto. #VoteTO 26 Oct 2010
  8. Tyler Stewart Baldy67 Outta the frying pan and into the deep fryer… #voteTO 26 Oct 2010
  9. Lee newgoodbye 2010: we hosted the G20 and some idiots broke stuff, and then we elected Rob Ford. Santa’s going to fly right over us this year. #voteTO 26 Oct 2010
  10. Dan Dziuba thatsadandyidea #voteTO #cp24mayor Everytime I see Ford, I hear “in a van, down by the RI-ver” 26 Oct 2010
  11. Jim Pook jimpook Ppl leaving TO: Remember, Calgary is East - keep driving until you hit water, you’re almost there. #VoteTO 26 Oct 2010
  12. MrDisco MrDisco3 Let hope cyclists get put out to pasture! #voteTO 26 Oct 2010
  13. Magda Wesolkowska wesolkowska Listening to @CBCNews Ford supporters saying without sarcasm, “the Tea Party has arrived in TO. Isn’t that great?” #VoteTO (head shaking) 26 Oct 2010
  14. DangerGirl6 DangerGirl6 Ok. Gotta Say It Again. ROB FORD IS TORONTO’S NEW MAYOR. WOOOOOOOT! NOW THAT IS REAL CHANGE!!! Way To Go TORONTO. #voteTO 26 Oct 2010
  15. Jim Pook jimpook Leftards are out in full force tonight in TO - Too bad for them they didn’t all get out and vote earlier when they had the chance! #VoteTO 26 Oct 2010
  16. Jim Pook jimpook @jasonnolan BooFuckingHoo - #RobFord still won. Get over it. #VoteTO 26 Oct 2010
  17. MrDisco MrDisco3 “Toronto: OCAD commits mass suicide” #voteTO SWEET! Let’s get the special interest groups off of the taxpayer’s teat. 26 Oct 2010
  18. S southpawrighty They kicked the bums out!. I feel like this city will finally turn around. So tired of socialist policies and “green” projects. #voteTo 26 Oct 2010
  19. MrDisco MrDisco3 artists and cyclists can get out of the way - it’s time for the common taxpayer to come first! #voteto 26 Oct 2010
  20. sharelle sharelle If enough people check in to Toronto on @foursquare, can Rob Ford be ousted as mayor? #voteTO #cp24mayor #fordpocalypse #unfordtunate 26 Oct 2010

— These quotes were brought to you by quoteurl

    • #voteTO
    • #twitter
    • #toronto
    • #politics
    • #Rob Ford
    • #George Smitherman
    • #election
  • 1 year ago
  • Permalink
  • Share
    Tweet

Twitter API: to cache or not to cache? When, why and how?

How do twitter-based apps access tweets going back several months? Do they keep data in dbs or do they re-search for tweets each time a visitor makes a query?

I’m asking because most of the playing around I’ve done with the twitter api has focused on the query functionatlity. This is a great way to pull in data but it is slow and I believe it would be much quicker if I had that data stored in a csv or db format. So the question I’m asking myself is whether I should be setting up a cron job that bakes out a csv or writes to a db once per day for the specified query strings. That would allow me to quickly pull in old tweets going back as far as I’d like. But this would mean that I would still need to write another set of methods to handle incoming queries not already in the daily cron list.

In looking at the Design Patterns section of the Twitter API FAQ, I came across this suggestion for caching:

“We recommend that you cache API responses in your application or on your site if you expect high-volume usage. For example, don’t try to call the Twitter API on every page load of your hugely popular website. Instead, call our API once a minute and save the response on your end, displaying your cached version on your site.”

Maybe this is the answer, but at what point does the traffic and response time warrant this approach? Lots of questions!

Edit:

Links

  • http://www.smashingmagazine.com/2009/03/02/twitter-web-designer-and-developer-toolbox-api-and-tutorials/
  • http://stackoverflow.com/questions/3040904/save-json-outputed-from-a-url-to-a-file
    • #twitter
    • #development
    • #api
  • 1 year ago
  • Permalink
  • Share
    Tweet

Tweets to TSV

I created a nice Twitter to TSV (tab separated values) program this weekend using Processing and Twitter4J. The challenge of working within the Twitter API rate limiting and parsing out the data turned out to be more interesting than the original idea I wanted to work on.

What’s great is that I now have a simple way to be able to create a large dataset of tweets for any search criteria I want to work on. My last test grabbed over 48000 posts tagged with #ukvote. 

Currently it outputs to a tsv file but that could be easily changed to talk to an SQL database as well if that made sense.

    • #processing.org
    • #twitter
    • #twitter4j
  • 2 years ago
  • Permalink
  • Share
    Tweet

About

Pages

  • Test Page

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr