A Python script that extracts the Instagram followers and following lists from a given username.
This code hasn't been working since Meta updated the Instagram interface for desktop systems (last quarter of 2022). You can find further information by clicking here.
Please check the repository Issue page before forking this project.
For security reasons, ensure that your Instagram account is already set up with the 2FA (two-factor authentication), otherwise, this script won't be useful.
Make sure to download the correct webdriver for your Operating System and Google Chrome version. Select the one that is appropriate for your environment from the official Google repository, download the ZIP file, extract it, and save the ChromeDriver file into the tools
folder. Afterward, run the commands listed in the Preparing the Environment
section.
-
$ virtualenv env -p python3
$ source env/bin/activate
(env) $ pip install -r requirements.txt
-
PS > py -m venv env
PS > .\env\Script\activate
(env) PS > py -m pip install --upgrade pip
(Optional)(env) PS > py -m pip install -r requirements.txt
-
(env) $ python3.7 main.py
-
(env) PS > py .\main