Skip to content
Discussion options

You must be logged in to vote

Here is a Python script using the Instagram API to mass block followers from another account:


import requests
from instagrapi import Client

def mass_block_followers(target_username):
# Instagram API credentials
username = 'your_username'
password = 'your_password'

# Create Instagram client
cl = Client()
cl.login(username, password)

# Get target user ID
target_user_id = cl.user_id_from_username(target_username)

# Get list of target user's followers
followers = cl.user_followers(target_user_id)

# Block each follower
for follower in followers:
    cl.block(follower)

Example usage

mass_block_followers('target_account')


This script uses the instagrapi library to interact with the Instagr…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@quaseaqui-lang
Comment options

@quaseaqui-lang
Comment options

@aryankumawat
Comment options

Answer selected by quaseaqui-lang
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other General topics and discussions that don't fit into other categories, but are related to GitHub Question Ask and answer questions about GitHub features and usage
5 participants