Making Twitter Work For Me

I do not really “get” Twitter for my personal use. I guess see it as a world-wide texting system largely independent of mobile phones companies (who make large margins on text services). I do not doubt, though, that people do use it. Accordingly, I setup a Twitter account for The Scottish Oil Club called, funny enough, “scottishoilclub“. The purpose is to give greater visibility to the club for members and non members. Perhaps also it could be a way to remind members of upcoming events and club news. All depends on getting “followers” of which as of now there is only one–me.

I gave some thought about how I was going to remember to contribute something to this Twitter feed. There is no point to having Twitter with no tweets! However, that is easier said then done.
Then I remembered that the automation I use for managing the Club is mostly done in Python (with a little Microsoft Access) which interacts with the database (MySQL) and the internet (web site, email, etc.). I wondered if I could use Python to interact with Twitter? “Yes” is the answer.
A Python wrapper around the Twitter API has been created, called Python Twitter. After installing this in Python, three lines of code are required to post a tweet:
import twitter
api=twitter.Api(username=’something’,password=’something’)
api.PostUpdate(“Hello World!”)
I’ve added this into my little program that manages club information. When I make changes to information (new directory, email to members, etc.) I now have in front of me the option to send a tweet on the same subject. Since this is almost automatic, it is likely to happen.
Advertisements

Comments are closed.

%d bloggers like this: