This project serves as a tool for processing and analyzing data. It provides insights into our followers, following, mutual followers, and users we follow but who don't follow back.
if you are confused, just run all scripts from the 01_process
directory to 02_analyze
directory and make sure you change the data txt in 00_html_folder
with filename v3_followers_html.txt
and v3_following_html.txt
with step in 'Before Usage (DON'T SKIP THIS STEP)'. or message me for the Guide.
- Make sure you have Python installed on your computer. Download Python
- Download the project or copy the code into your project.
- Install the required librarys.
- Beautiful Soup or install with pip
pip install beautifulsoup4
pip install pandas
- You can combine the installation with the following command:
pip install beautifulsoup4 pandas
- If you got any errors, please contact me.
- Open your instagram account and navigate to the following page: https://www.instagram.com/username/
- Click on the "Followers" button.
- Inspect the followers page, make to mobile interface, and extract the HTML code. Make sure to scroll down to the bottom of the page.
- Click on the "Following" button.
- Inspect the following page, make to mobile interface, and extract the HTML code. Make sure to scroll down to the bottom of the page.
6. Copy and paste the HTML code into a text file.
7. For followers, place the HTML code in the 00_html_folder
directory with the name v3_followers_html.txt
.
8. For following, place the HTML code in the 00_html_folder
directory with the name v3_following_html.txt
.
- Place change data inside the txt file from an Instagram follower and following in the
00_html_folder
directory with the namev3_followers_html.txt
andv3_following_html.txt
. - Run the script in folder
01_process/0101_save_followers_data.py
to extract and save follower data. - Run the script in folder
01_process/0102_save_following_data.py
to extract and save following data. - View the results in foldername
03_results_folder
with filename is{today}_followers.csv
,{today}_followers.txt
,{today}_following.csv
,{today}_following.txt
, and{today}_instagram.txt
files. - In the
02_analyze
directory, run the script0201_knowing_data.py
. This script will analyze the data and show followers and following counts. - In the
02_analyze
directory, Run the script0202_checking_data.py
. This script will analyze the data and show users we follow, users who follow us, users who don't follow us back, users we don't follow but follow us, and users who follow each other with us. with add list of users who don't follow back. - In the
02_analyze
directory, Run the script0203_saving_output.py
. This script will save the output in the03_results_folder/data/{today}_data.txt
.
- Place change data inside the txt file from an Instagram follower and following in the
00_html_folder
directory with the namev3_followers_html.txt
andv3_following_html.txt
. - Run the script in folder
01_process
with0101_save_followers_data.py
and0102_save_following_data.py
- Run the script in folder
02_analyze
with0201_knowing_data.py
,0202_checking_data.py
, and0203_saving_output.py
and see in your terminal.
If you have any feedback or suggestions, please contact me.
If you would like to contribute to this project, please create a pull request and let us know about the proposed changes.
This project is licensed under the MIT License.
Note: Be sure to replace or adjust certain sections as needed for your project's specifics. For followers and following under 1500.