TV + Twitter Search = Twitter Box

5 04 2009

Ever wondered what other people were saying about the TV show your watching? No… well I didn’t either until I came across this post on digitaltip.com.au about twitter back chat on live events and TV shows.

The Simpsons

It got me thinking, it could be pretty interesting seeing what people said about various TV shows. Hell, it could even make some shows worth watching (unfortunately for channel 10 it’s still not enough to get me to watch So You Think you Can Dance…).

Anyway, after a bit of mucking around with Python, MythTV, and the Twitter I put together Twitter Box, a program which displays tweets people post about the show your watching on MythTV!

Video Hits with Subtitles?

It works by searching for tweets containing the title of the show you’re currently watching in your local area. If your show is popular enough to have it’s own hash tag you can configure TwitterBox to use the hash tag instead of the title.

Download it from here: twitter_box_0.2.tar.gz


Actions

Information

7 responses

5 04 2009
Tiphereth

Wow that is the coolest thing ever! I’m not sure I’m nerdy enough to put it together but I want to give it a go! Glad I could be of inspiration 🙂

17 05 2009
Jelle De Loecker

Hmm, the link died 😦

17 05 2009
spitfireaus

Woops sorry, let me fix that up.

10 07 2009
Daniel Saunders

Thanks heaps for this.

The one thing I had to do to get this working on my MythTV box was enable the ‘Remote Control Port’ (its disabled by default). I found in the ‘General’ section of the Setup (about the 4th page or so).

Looking forward to seeing how it goes.

10 07 2009
Daniel Saunders

Almost got it working – I’m getting this error

Traceback (most recent call last):
File “/opt/twitter-box/twitter_box.py”, line 161, in
twitter.Twitter().search(search, gotEntry, args).addBoth(
AttributeError: ‘module’ object has no attribute ‘Twitter’

which I assume means that there is some difference between the python-twitter library that I have installed and the one you have installed. Any ideas of how to get it working?

11 07 2009
spitfireaus

Daniel,

Thanks for the tip on enabling remote control port!

You’ll need to use the Twitter library from http://github.com/dustin/twitty-twister/tree/master rather than the python-twitter library which is commonly distributed.

Also to avoid having to remove your other twitter library you can just put twitter.py and txml.py into the twitter-box folder.

Cheers,
Glen

12 07 2009
Daniel Saunders

That worked the treat. Had to also install the oath.py file from the gitgub page.

Thanks.

Leave a comment




Design a site like this with WordPress.com
Get started