Insta-compare is a web scraping tool designed to gather following and follower information from an Instagram user's account and analyze the differences between the two sets. This project is built using Node.js and Express for the backend, Selenium for web automation and scraping, and EJS and Bootstrap for the frontend. With Insta-compare, you can easily compare and contrast the accounts you follow with those who follow you, helping you gain valuable insights into your Instagram network.
Before using Insta-compare, ensure you have the following prerequisites installed on your system:
- Clone the Insta-compare repository to your local machine:
git clone https://github.com/noahbei/insta-compare.git
- Navigate to the project directory:
cd insta-compare
- Install the required Node.js modules using npm:
npm i
- Start the Insta-compare server by running the following command:
npm run start
-
The console will display a message indicating that the server has started on port 3000.
-
Open a web browser and navigate to http://localhost:3000.
-
You will be prompted to log in to your Instagram account. Enter your Instagram username and password to proceed.
-
Insta-compare will log in to your account and begin gathering the required information. Please refrain from restarting the page during this process, as the scraper is working in the background.
-
The scraping process may be slow because it mimics human behavior to avoid triggering bot detection. Ensure you have a stable internet connection for optimal performance.
-
Once the scraper has finished its work, you will be redirected to a results page where you can see the output.
Insta-compare provides three key sections (plus the 2 input) for analyzing your Instagram network:
Following: This section displays the list of accounts you follow.
Followers: Here, you can see the list of accounts that follow you.
Only In Following: This section displays the accounts you follow but who don't follow you back.
Only In Followers: Here, you can see the accounts following you that you don't follow back.
Overlap: This section shows the accounts you both follow and who follow you.
You can switch between these sections using a toggle at the top of the page.
Additionally, you can download the output as .json files through the menu at the top of the page or directly from the display divs.
-
The web scraping process can be slow due to the need to mimic human behavior to avoid bot detection/action blocks. Please be patient during the scraping process.
-
Ensure you have a stable internet connection for the best performance. This will not work if you have a slow internet connection.
-
In the case of any errors during scraping, remove the headless option from
scraper.js
to debug.
//firefoxOptions.headless();
//chromeOptions.headless();
//edgeOptions.headless();
This project is licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License - see the LICENSE file for details.