from twarc import Twarc2, expansions
import json

# Replace your bearer token below
client = Twarc2(bearer_token="<PASSWORD>")


def main():
    # The followers function gets followers for specified user
    followers = client.followers(user="twitterdev")
    for page in followers:
        result = expansions.flatten(page)
        for user in result:
            # Here we are printing the full Tweet object JSON to the console
            print(json.dumps(user))


if __name__ == "__main__":
    main()

from twarc import Twarc2, expansions
import json

# Replace your bearer token below
client = Twarc2(bearer_token="<PASSWORD>")


def main():
    # The followers function gets followers for specified user
    followers = client.followers(user="twitterdev")
    for page in followers:
        result = expansions.flatten(page)
        for user in result:
            # Here we are printing the full Tweet object JSON to the console
            print(json.dumps(user))


if __name__ == "__main__":
    main()

# Replace your bearer token below # The followers function gets followers for specified user # Here we are printing the full Tweet object JSON to the console