npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

simple-instagram-scraper

1.0.12 • Public • Published

Simple Instagram Scraper

NPM Codacy Badge FOSSA Status

This is a simple Instagram scraper. It returns the followers, following, and posts for a certain user.

Usage

To use the scraper create an async function (or implement promises). The function will have to wait for a response from the request to actually print something out.

Importing can be done by creating a variable and requiring the package.

const instagramScraper = require('simple-instagram-scraper');

There is only one function in this package currently and it is featured below.

const instagramScraper = require('simple-instagram-scraper');
let report = await instagramScraper.getReport('dd0nn'); 

Report will now contain an output of the results for instagram user dd0nn.

Example

Below is an example of a function testReport()

const testReport = async() => {
    let report = await instagramScraper.getReport('logic');
    console.log(report)
}

As you can see, one can call the getReport() on the imported package and recieve a full report of the user.

Output

The output contains a username, follower count, following count, post count, and timestamp based on Unix Time.

{ username: 'logic',
  followers: '5.3m',
  following: '346',
  posts: '1932',
  dateRequested: 1529167209700 }

License

FOSSA Status

install

npm i simple-instagram-scraper

Downloadsweekly downloads

55

version

1.0.12

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability