From 00be8d7d40de9c9d11e1112b71f74276ab16e129 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 3 Nov 2021 15:59:44 -0400 Subject: [PATCH] [U] Update usage in tweepy login --- collect/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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