pip install selenium colored pillow python-dotenv requests
or run the dep-installer.py
file.
The current version of Chrome Driver in this repository is 129. To ensure compatibility, please check for the latest ChromeDriver version here.
If a newer version is available:
- Download the latest ChromeDriver.
- Replace the existing file in the
driver
folder with the newly downloaded version.
Note: If you don't have Chrome installed on your system, make sure to install it before proceeding.
ChromeDriver version must be the same chrome version installed on your system. You can check your installed chrome version via Settings > About Chrome.
- Add latest ChromeDriver to in "driver" folder.
- Set image and driver path.
Order to remove pending follow requests:
- Download your data from Instagram.
- Your Activity > Download Your Information
- Click continue.
- Click "Download or transfter information".
- Find "Connections" tab and tick the "Followers and following" check box.
- Click Next.
- Tick the "Dwonload to device" check box & click next.
- Select a "Date range" & Select "Format" as JSON then click "Create files".
- Wait for the Instagram notifies you with e-mail that the process is complete.
- After downloading the data that Instagram sends you, find
pending_follow_requests.json
file underconnections/followers_and_following
folder. - Move the file to
data
folder in the tool.
Warning
Do not rename or edit the file content.
if you don't want to pass your login information every time you run the tool, please fill the _loginInfo
file or create a .env
file with the following variables:
IG_USERNAME="your_username"
IG_PASSWORD="your_password"
The headless option may lead to certian action blocks (follow/unfollow) from Instagram if used too often. You might want to disable it in your use case.
Order to disable it comment out or remove the below line from InstagramTool.py file.
self.chrome_options.add_argument("--headless=old")