This Python script uses the Instagram API to track who unfollows an Instagram user and sends an email notification to the user when someone unfollows them. The script prompts the user to enter an Instagram username to track and an email address to receive notifications. The script then retrieves the list of followers for the user every 10 seconds and compares it to the previous list of followers to find out who has unfollowed them. If someone has unfollowed the user, the script sends an email notification to the user with the list of unfollowed users. This project can be useful for Instagram users who want to keep track of their followers and engagement on the platform.
- Python 3.x
requests
librarysmtplib
library
- Clone the repository or download the
main.py
file. - Install the
requests
andsmtplib
libraries using pip:pip install requests smtplib
. - Replace
YOUR_ACCESS_TOKEN
,YOUR_EMAIL_ADDRESS
, andYOUR_PASSWORD
with your own access token, email address, and password in themain.py
file. - Run the script using the command
python main.py
.
- Enter an Instagram username to track when prompted.
- Enter an email address to receive notifications when someone unfollows the user.
- The script will start tracking the user's followers and send an email notification when someone unfollows them.