DEV Community

Ozan Yurtsever
Ozan Yurtsever

Posted on

A Simple Script to Automate Instagram Unfollowing

Hello everyone. I have coded a simple Python script to automate Unfollowing process on Instagram. Please go to my project via following GitHub link;

GitHub logo ozanyurtsever / instagram_unfollower

A Python script to unfollow users who you follow but they don't follow you back on Instagram. Works with Selenium, without using Instagram API.

Instagram Unfollower

A Python script designed to unfollow users who you follow but they don't follow you back. Works with Selenium, without using Instagram API.

How to Use it ?

You will run the program with main.py file, just open the code and change the username and password variables with your account's infos. It's best to have InstaUnfollower.py and main.py in the same directories.

Requirements

  1. Python 3.X on your device
  2. Python version of Selenium should be installed ( pip install selenium )
  3. Geckodriver should be installed ( https://github.com/mozilla/geckodriver/releases )
  4. geckodriver executable file should have been added on the PATH ( adding it on the PATH differs according to your OS)
  5. Firefox Browser should be installed.



Instagram Unfollower

A Python script designed to unfollow users who you follow but they don't follow you back. Works with Selenium, without using Instagram API.

How to Use it ?

You will run the program with main.py file, just open the code and change the username and password variables with your account's infos. It's best to have InstaUnfollower.py and main.py in the same directories.

Requirements

Python 3.X on your device
Python version of Selenium should be installed ( pip install selenium )
Geckodriver should be installed ( https://github.com/mozilla/geckodriver/releases )
geckodriver executable file should have been added on the PATH ( adding it on the PATH differs according to your OS)
Firefox Browser should be installed.

Top comments (5)

Collapse
 
stark16 profile image
Stark16

How confident are you that it wont get me banned? I run a meme page, with okayish no. of followers..

Collapse
 
nikolasmcdole_ profile image
Nikolas

It's not working for me :(

Collapse
 
seyi_law2 profile image
seyibobo

Go to line 14 on the init section and change the geckodriver.exe path to the one you making use of.... Also make sure the you've added the gecko.exe to PATH.

Collapse
 
firozansari profile image
Firoz Ansari

... And get shadow banned on Instagram for using the automated script.

Collapse
 
ozanyurtsever profile image
Ozan Yurtsever

You will not get banned, since the program is optimized to behave in more optimal speed.