Advertisement
Guest User

Untitled

a guest
Nov 19th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. from atproto import Client
  2. client = Client()
  3. USERNAME = "jeandupond.bsky.social"
  4. PASSWORD = "XXXXXXXXXXXXXXXXXXXXXXX"
  5. client.login(USERNAME, PASSWORD)
  6.  
  7. cursor = None
  8. nb_followers = 0
  9. while True:
  10. response = client.get_followers(actor="jeandupond.bsky.social", cursor=cursor)
  11. nb_followers += len(response["followers"])
  12. if not response.cursor:
  13. break
  14. cursor = response.cursor
  15. print(nb_followers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement