[email protected] Lawrence-Liu
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
import tweepy | |
#load consumer credentials | |
with open('/Users/lawrence/Documents/twitter_bot/keys.pass', 'r') as keys: | |
CONSUMER_KEY = keys.readline().split(':')[1].strip('\n') | |
CONSUMER_SECRET = keys.readline().split(':')[1].strip('\n') | |
#create an OAuth handler | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) | |
#get redirected url | |
try: |