This Python script uses the Instaloader library to download the list of followers and followings for two Instagram profiles. It also compares the two profiles to find mutual followers and followings, saving the results in text files.
- Download followers and followings for any Instagram user.
- Compare two Instagram users and find their mutual followers and followings.
- Save the results in organized text files for easy access.
- Python 3.x
- Instaloader
-
Clone the repository:
git clone https://github.com/yourusername/instagram-profile-info-downloader.git cd instagram-profile-info-downloader
-
Install the dependencies:
pip install instaloader
-
Login to Instagram:
- Open the
download_profile_info
function in the script. - Replace
"your_username"
and"your_password"
with your Instagram credentials.
- Open the
-
Run the script:
python script.py
-
Enter the Instagram usernames when prompted:
- The script will ask for two Instagram usernames.
- It will then download their followers and followings and find their mutual followers and followings.
-
Results:
- The script will create a folder for each username, storing their followers and followings in
followers.txt
andfollowing.txt
. - A folder for mutuals will be created, containing
mutual_followers.txt
andmutual_followings.txt
.
- The script will create a folder for each username, storing their followers and followings in
Enter the first username: user1
Enter the second username: user2
user1_data/followers.txt
user1_data/following.txt
user2_data/followers.txt
user2_data/following.txt
user1_and_user2_mutuals/mutual_followers.txt
user1_and_user2_mutuals/mutual_followings.txt
- Instagram Rate Limits: Instagram may impose rate limits, so avoid making too many requests in a short time.
- Privacy: Make sure you comply with Instagram's privacy policies and only use this script for ethical purposes.
Feel free to fork this repository and submit pull requests with improvements or additional features!
This project is licensed under the MIT License - see the LICENSE file for details.