Raspberry Pi - responding to Tweets

I really have tried to search for any and various places where I can get specific information about this but honestly I am now just looking for some hand-holding. I am completely new to most of this stuff but am fascinated and want to get something going. I’ve got a bit of coding ability and I have been dabbling with some minor breadboarding practice to learn some of the basics.

Now…

I thought I had a decent project to work on with the Twitter Monitor

https://learn.sparkfun.com/tutorials/ra … er-monitor

for my new Raspberry Pi (B+) which I took possession of very recently.

I want to have my RaspPi produce various output indicators based on specific hastags or strings. Either flash different LEDs or activate various servos. I thought I would be able to tweak one of many designs already developed since this is surely an obvious use for twitter and IOT. IE. I would like for a tweet of WAVE to cause the RaspPi to swing a servo arm through 90degrees or something…

But I am not having much luck finding an existing application for a guide. The Sparkfun tutorial above comes closest!

I am having trouble telling whether Twitter is still able to be mined in the way the tutorial describes, or if it is then how I go about navigating through Twitter’s latest iteration of their website.

I have collected the various components and am moving on the the next step where I need to “Register my Twitter App” I see nowhere on the twitter developers’ site that appears to do what is indicated in the tutorial. Worse still, I started reading about Twitters REST and Streaming APIs and got myself totally turned around. I presume that I would be looking at the Streaming API but I am not sure if a raspberry pi would be able to run two processes that Twitter recommends – one to filter the stream and another to act upon the stored results.

Any assistance you could suggest would be appreciated.

I managed to figure out the problem I was having – it’s nothing to do with the code or the technique. Simply with the navigation through the Twitter site.

dev.twitter.com no longer has a page that matches the example given in the sparkfun tutorial. Instead it focuses mainly on the new ‘fabric’ processes.

The link to ‘manage my apps’ is now at the bottom of the page and I overlooked it thinking it was just the corporate contact paragraph…

Anyhow, the simple python script works like a charm and is shockingly fast to pick up tweet strings… so I am happy.

Now to go off and learn how to tidy up the code, improve the location of the various ssl elements (rather than leaving them in clear) and also to look into threading in python.

Cheers!