def __init__(self, config):
auth_dict = config["auth"]
self.api = twitter.Api(
consumer_key=auth_dict["api_key"],
consumer_secret=auth_dict["api_secret"],
access_token_key=auth_dict["token"],
access_token_secret=auth_dict["token_secret"],
tweet_mode="extended",
)
self.screen_name = config["user"]["screen_name"]
评论列表
文章目录