Git Product home page Git Product logo

instagram_unfollow_bot's Introduction

Instagram Unfollow Bot

What does it do?

This is an automation script coded by Hamza Mughal that logs into your Instagram account and get your following list clean. Basically this script unfollows all the accounts you've been following and don't have much time to do it manually. Worth noting that I created this script while in quarantine period due to Corona Virus for fun.

Do I need this?

Tricky Question! The answer is maybe yes or maybe no. Yes in that case you've blindly followed people on Instagram and you aren't sure how to get rid of them. This simple script would help you get rid of them

How to use?

  • Clone this repository to your system or try downloading the zip file. If using commandline make sure that you've installed git.

  • Navigate to the project directory and in the terminal execute the following commands. But before make sure python and pip are installed and added to the path

$ pip install virtualenv
  • The last command would install virtualenv. Now you need to create a virtual environment, execute the following command and give a name to your environment. mostly called venv
$ virtualenv <name for virtual environment> eg:(venv)
  • The virtual environment is created and is ready for use. execute the following command and replace venv with your environment name. This would activate the venv
$ source venv/bin/activate
  • Now you need to install these dependencies with pip and also download and extract the webdriver for the browser you're using.
$ pip install selenium
$ pip install python-dotenv
  • Copy .env.example to .env and fill out your username and password in the required fields
$ cp .env.example .env
$ vim .env
  • At last run the script and using python command and it would get everything done for you. Make sure you're using python v3.x.x
$ python --version
$ python main.py # For linux
$ python3 main.py # For mac

Issues you might face

Remember this script was created on March 29, 2020. So if you get an error that the element doesn't exists you can try changing the sleep(time_in_seconds) time to something higher and it might also depend on your internet connection.

Secondly it may have issues when instagram gets updated.

Useful Links

What I ask?

If you like this script and found this useful you can star this repo and share with your friends.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.