Created
May 27, 2016 17:06
-
-
Save rishigb/531128ef4f3b0f4515c653a3a5350b42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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