Unfortunately, python-twitter does not yet support Twitter Retweet REST call .
You will need to make this call directly (using direct calls to api._FetchURL) or apply the patch to question 130 to add support.
You better use tweepy ; read the API documentation ; there is a convenient retweet(id) method for retweeting.
Quick and dirty example:
import tweepy auth = tweepy.BasicAuthHandler("username", "password") api = tweepy.API(auth) for status in api.user_timeline('someuser'): api.retweet(status.id)
This will reassign the last 20 statuses from someuser . You will want to make some more codes to prevent the same messages from being replayed the next time you run the script.
Edit: Twitter will no longer accept BasicAuth authentication, and you will need to use OAuth authentication exchange to get the authorization token. Changing the example above to use OAuth will lead to a deviation from the point of the API repeater that I tried to do, see the Tweepy OAuth tutorial for an extensive tutorial.
source share