I've attached the Python script I was using to upload tweets to Twitter
last night in case anyone wanted to play with it.
-Dafydd
#!/usr/bin/python
"""
Twitter demo for CLUG presentation
Site for python-twitter: https://code.google.com/p/python-twitter/
"""
# Be sure to use the most recent python-twitter!
import twitter
# These variables are gotten when you create an application
# with http://dev.twitter.com
consumer_key=''
consumer_secret=''
access_token_key=''
access_token_secret=''
# Connect to Twitter!
api = twitter.Api(consumer_key=consumer_key, consumer_secret=consumer_secret,
access_token_key=access_token_key, access_token_secret=access_token_secret)
# Posting stuff is easy
api.PostUpdate('Hi CLUG!')
# So is searching for stuff
search = api.GetSearch(term="moon")
for tweet in search:
print tweet.text
# There's really no limit to what you can do with Twitter,
# as it's a simple platform!
# Other fun APIs:
# Facebook: https://github.com/facebook/python-sdk
# Google: https://code.google.com/p/gdata-python-client/
# http://www.programmableweb.com/apis/directory
_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying