/instagram-profilecrawl

Quickly crawl the information (e.g. followers, tags etc...) of an instagram profile. No login required!

Primary LanguageJavaScriptMIT LicenseMIT

Instagram-Profilecrawl

NPM version Build Status built with NodeJS built with Selenium

Quickly crawl the information (e.g. followers, tags, mentions, date, etc...) of an instagram profile. No login required!

Automation Script for crawling information from multiple instagram profile, like the number of posts, followers, tags and mentions of the posts.

Note : This is an original idea of timgrossmann with the project instagram-profilecrawl realized in Python. I'm not a Python developer but I was very interested in this project so I realized the same thing but in nodeJS, bringing some improvements.

Functionality

  • crawl the number of followers, followings and posts
  • It's possible to crawl several accounts following
  • crawl each post with number of likes and comments
  • crawl date, localization, description, tags and mention
  • work with all type of media
  • support multiple image

The movements of the user on the browser can influence the behavior of the script. Don't move the mouse in the browser.

Install

npm install -g instagram-profilecrawl

If you encounter an error on windows, do :

npm install -g windows-build-tools
npm install -g instagram-profilecrawl

Usage

Usage
	$ instagram-profilecrawl <name> <name>

	Examples
	  $ instagram-profilecrawl nacimgoura

Example

You can find complete examples in the example folder.

Structure of data :

{
  {
    "alias": "nacimgoura",
    "username": "Nacim",
    "descriptionProfile": "French student 🇫🇷 «La vie est un conte de fée qui perd ses pouvoirs magique lorsque nous grandissons.»",
    "urlProfile": "https://www.instagram.com/nacimgoura/",
    "urlImgProfile": "https://scontent-cdg2-1.cdninstagram.com/t51.2885-19/s150x150/17662950_1416155488436522_4443366366061264896_a.jpg",
    "website": "nacimgoura.xyz",
    "numberPosts": 22,
    "numberFollowers": 390,
    "numberFollowing": 410,
    "private": false,
    "posts": [
      {
        "url": "https://www.instagram.com/p/BSy5fM-gkTB/?taken-by=nacimgoura",
        "isVideo": false,
        "multipleImage": false,
        "urlMedia": "https://scontent-frt3-1.cdninstagram.com/t51.2885-15/e35/17882589_765690586924244_1094628417464172544_n.jpg",
        "numberLikes": 23,
        "numberComments": 1,
        "description": "piano time 🎹",
        "tags": [
          "#piano",
          "#music",
          "#enattendantletrain",
          "#blackandwhite",
          "#artist"
        ],
        "mentions": []
      }
        ...
  ]      
}