#FreeStuffFriday on twitter

This thread has moved to my new site here: http://pyhacker.com/archive2010/freestufffriday-twitter/

So [@Sega][1] has been giving stuff away on twitter every friday in a promotion they call [#FreeStuffFriday][2]. All you need to do to win is direct message them with the key phrase at the right time. I wrote a script to help me win and it's actually worked a handful of times. The hardest part is trying to estimate the amount of time to wait to be the right respondent. Anyway, twitter just flipped the OAuth switch so I updated my script to work with that. I'm attaching it for whomever would like to use it. You need simplejson and oauth installed (easy_install works for both of those) and the python-twitter and oauthtwitter modules which I'm also attaching to this post.

[1]: http://twitter.com/sega [2]: http://twitter.com/#search?q=#FreeStuffFriday

To use this script, first you'll need to follow [@Sega][1] on twitter. Next, you need to register a twitter app by going here: http://dev.twitter.com/apps/new.

After that, fill in the consumer_key and consumer_secret variables in the script. 

Run the script! Good luck!


Published: September 02, 2010

Author: jmhobbs

Word Count: 202


python twitter


  • Tag Cloud


    Copyright © 2015 Jared Hobbs. All rights reserved. Powered by Pelican. The Hobbs Family theme available here.