This is a simple driver script that uses the InstaPy library to follow and unfollow users. It's based on one of the template scripts from the project. I've modified the script to include a config file so that I can easily spin up multiple instances for multiple accounts.
I'm using pipenv and pyenv to manage my Python environments. You should have those installed first. You also need Chrome Driver. I use homebrew to install it.
Clone the repo and then run:
pipenv install
Copy the config.yml.example to config.yml and edit it accordingly
pipenv run python follow_unfollow.py