This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import getpass | |
from typing import List, Dict | |
from twscrape import API, gather # type: ignore | |
OUTPUT_FILE = "following_export.txt" # Hardcoded output file name | |
async def get_following_accounts(target_username: str, api: API) -> List[Dict[str, str]]: | |
""" | |
Fetch the accounts that the given target user follows. |
OlderNewer