From f1a4c95fae251fcf1373d5c686d45430bbe2b289 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 21 Nov 2021 23:03:49 -0500 Subject: [PATCH] [-] Remove get_user_following_data --- src/raw_collect/twitter.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/raw_collect/twitter.py b/src/raw_collect/twitter.py index df0b299..7d76d6a 100644 --- a/src/raw_collect/twitter.py +++ b/src/raw_collect/twitter.py @@ -260,21 +260,7 @@ def convert_to_generic(username: str, tweet: Tweet) -> Posting: date=tweet.created_at) -def get_user_followings_data(api: API, screen_name: str) -> list[str]: - """ - Get a user's followings - a list of user that a specific user follows. - - We limited the result to 5000 entries because that is the maximum entries per query that the - twitter API allows. And we think 5000 entries is an enough sample size. - - :param api: Tweepy API - :param screen_name: The user's screen name - :return: List of users that the user follows. - """ - return api.get_friends(screen_name=screen_name, count=5000) - - if __name__ == '__main__': conf = load_config() api = tweepy_login(conf) - print(json.dumps(get_user_followings(api, "sauricat"))) +