DEV Community

Ozan Yurtsever
Ozan Yurtsever

Posted on

10 1

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.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay