def __init__(self, consumer_key, consumer_secret, user_credentials):
credentials = json.loads(user_credentials)
auth = OAuth(credentials['oauth_token'],
credentials['oauth_token_secret'],
consumer_key,
consumer_secret)
self.api = Twitter(auth=auth)
评论列表
文章目录