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
def follow_user_follows(client, target_user): | |
"Follow everyone the target_user is following." | |
cursor = None | |
total_followed = 0 | |
while True: | |
# Step 1: Fetch a batch of accounts the target user is following | |
# https://docs.bsky.app/docs/api/app-bsky-graph-get-follows | |
response = client.app.bsky.graph.get_follows({ |