Skip to content

Instantly share code, notes, and snippets.

@rishigb
Created May 27, 2016 17:06
Show Gist options
  • Select an option

  • Save rishigb/531128ef4f3b0f4515c653a3a5350b42 to your computer and use it in GitHub Desktop.

Select an option

Save rishigb/531128ef4f3b0f4515c653a3a5350b42 to your computer and use it in GitHub Desktop.
def doRetweet(_id_string_):
# authenticate against the Twitter API
import _inputs as c
auth = OAuthHandler(c.consumer_key, c.consumer_secret)
auth.set_access_token(c.access_token, c.access_token_secret)
api = tweepy.API(auth)
# actually do the retweet
api.retweet(_id_string_)
print('I did the retweet: ', _id_string_)
#print()
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment