diff --git a/collect/utils.py b/collect/utils.py index 6b09425..bb98ed2 100644 --- a/collect/utils.py +++ b/collect/utils.py @@ -51,7 +51,7 @@ def tweepy_login(conf: Config) -> tweepy.API: :param conf: Config from load_config() :return: Tweepy API object """ - auth = tweepy.OAuthHandler(conf['consumer_key'], conf['consumer_secret']) - auth.set_access_token(conf['access_token'], conf['access_secret']) + auth = tweepy.OAuthHandler(conf.consumer_key, conf.consumer_secret) + auth.set_access_token(conf.access_token, conf.access_secret) api: tweepy.API = tweepy.API(auth) return api