Git Product home page Git Product logo

instagramnetworkgraph's Introduction

Instagram Network Graph

An all in one Instagram scraper and analyzer for finding and visualizing clusters from people you are following.

Example

Example cluster

Getting Started

This project runs on Node.js and does the scraping via a headless chromium instance. It's tested with Node v18.4.0 on Windows 10 & 11.

Install Node

Install dependencies

npm install

Run the project

npm run start

After that you will be presented a GUI on localhost:3000/ for configuration.

Features

  • Only sending a certain amount of requests per hour.
  • Saving sessions to avoid logging in every time
  • Persistent storing of scraped data.
  • Scraping with an alt account
    • Automatically removing private accounts for re-scraping with the main account
  • Configuring of node + link size
  • Configuring of forces
  • Mouse hover highlighting
  • Node Drag + Drop
  • Zoom + Drag
  • Colorful nodes. (Needs more performance)
  • 2FA support

Stack

  • Puppeteer is used for scraping
  • Express.js for config and page hosting
  • d3.js for graph generation

FAQ

  • Why not use a pre made plugin for scraping?
    • Normally, Instagram only provides a list of ~20 people you are following, and you have to do a follow-up request for getting the next 20. This is of course not viable for scraping more than a thousand accounts. My workaround for this, a little (probably) bug in the Instagram private API isn't supported by any plugin I could find, so I decided on doing it like this.

Authors

See also the list of contributors who participated in this project.

Disclaimer

This project is in no way affiliated with, authorized, maintained or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent and unofficial project.

Please note that this is a research project. I am by no means responsible for any usage of this tool. Use it on your behalf. I'm also not responsible if your accounts get banned due to the extensive use of this tool. Use at your own risk.

License

Copyright 2022 Marvin Möltgen

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See the LICENSE.md file for more details.

instagramnetworkgraph's People

Contributors

m123-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  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.