Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Script to count which episode of Columbo is getting tweeted about most
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
columbo_episodes.txt
most_tweeted_episodes.py
sample-results-Jun-26-16:31:53-BST-2011.txt

README

Sadly, Peter Falk died this week.  This means a lot of people are tweeting about Columbo.

This script looks in a local file named columbo_episodes.txt for a newline separated list of Columbo episodes and then uses the Twitter Search API to see how many tweets have been posted for each of them.  Prints out the episode names, newline separated, in order of tweet count plus the count itself, separated by a '|'.

Searches for the episode title in quotes plus the keyword columbo to avoid getting a lot of false positives for the episodes whose names are simply common phrases. E.g '"Dead Weight" columbo'
Something went wrong with that request. Please try again.