Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from atproto import Client
- client = Client()
- USERNAME = "jeandupond.bsky.social"
- PASSWORD = "XXXXXXXXXXXXXXXXXXXXXXX"
- client.login(USERNAME, PASSWORD)
- cursor = None
- nb_followers = 0
- while True:
- response = client.get_followers(actor="jeandupond.bsky.social", cursor=cursor)
- nb_followers += len(response["followers"])
- if not response.cursor:
- break
- cursor = response.cursor
- print(nb_followers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement