GithubHelp home page GithubHelp logo

followers-scraper's Introduction

Followers Scraper

Introduction

This program is intended to print out a list of Instagram users that do not follow you back. This program does so using Selenium and without any unlicensed APIs, making this procedure compliant with Instagram's terms of service.

Prerequisties

Before running this program, make sure you have Python 3.10 installed and configured to your PATH variable, as well as have the browser Google Chrome and Selenium's chromedriver installed and configured.

Running

To run this program, type

python3 main.py

In your terminal. It will then prompt you for your username and password, which you should type into the terminal and proceed to press Enter once finished.

Procedure

Once the username and password has been entered, this program will open Chrome and navigate to Instagram, and will then proceed to log into the user's account. From there, the program will navigate to the user's profile, and proceed to parse the number of followers the user has as well as how many other users the user is following.

The program will then add the names of all followers into a set, and once that has been completed, the program will then proceed to add the names of all following into another set. Finally, the program will iterate through the following set to print out the usernames of any users who don't follow the user back.

Other Notes

  • Do not move your cursor from the screen while the program is running. If you do so, you must quit the program, as it will continuosly try to scroll down.

Known Issues and Bugs

  • For users with Highlight reels, the XPath for getting the number of followers/following seems to be different than for users without Highlight reels. Currently, this program only supports users with Highlight reels, however this can be changed in the future.
  • Performance can be further optimized, with an algorithm that changes the interval time in which the sets are updated.

For any further questions or issues, you can reach me at [email protected]

followers-scraper's People

Contributors

zhendahu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.