WORKING ONLY WITH PYTHON VERSION 3.X Copy and paste the following lines in the terminal.
git clone https://github.com/ABeltramo/Instagram-API-python.git
cd Instagram-API-python
pip3 install -r requirements.txt
imageio_download_bin ffmpeg
# Download the script present here
wget https://gist.githubusercontent.com/ABeltramo/87e548ff89ac17e0be1b4f737290cbe6/raw/main.py
Download the script main.py and put in the same folder as Instagram-API-python.
Change the IG USERNAME AND PASSWORD in the script then run:
python3 main.py