insta_scrape_insta

1.2.6 • Public • Published

InstaScrape

Build Status

InstaScrape is a scraping tool that allows programmers to extract publice user information without Logging into Instagram.

  • User Full Name
  • User Profile Image
  • User Follower Count
  • User Post FEED ( Picture & Video )

Package Dependencies

  • Puppeteer - Headless Chrome Node API.
  • Lodash - A modern JavaScript utility library delivering modularity, performance & extras.
  • util - Node.js's util module for all engines.
  • meow - CLI app helper.

Installation

InstaScrape requires Node.js 6.4.0+ to run. Install the dependencies before running.

If you want to run the API in the CLI

$ npm install insta_scrape_insta
cd insta_scrape_insta
$ node app.js instascrape -h danbilzerian -c 10

InstaScrape can extract only 1 users information through the CLI FOR NOW.

Flags Shorthand Optional Value
filetype -f YES json( return an object ) / json_file
timestamp -t YES Date and Time upto which posts should be extracted
handle -h NO Instagram Handle Name
filename -n YES Custom file name
count -c YES Extract certain number of posts from the feed
hashtag -ht YES Match a specific hashtag in the feed

If you want to call the method in your program

let InstaScrape = require('insta_scrape_insta')
let users = [
        {
            handle:"rik.roc",
            timestamp:"2018-09-04T11:42:12.000Z",
            match_tag:""
            no_of_posts: 20
        }
]
let options = {
    users,
    cool_down_time: 200,
    result_format: "json_file",
    result_file_name: "my_insta_profile"
}
let response = InstaScrape(options)
Key Optional Value
users NO Array of all users you want information about
cool_down_time YES Short setTimeOuts for the Garbage Collector to do its jog
result_format YES json( return an object ) / json_file
result_file_name YES Custom file name

The following are the option provided to filter releavant posts from the feed.

Key Optional Value
handle NO Users Instagram Handle
timestamp YES Date and Time upto which posts should be extracted
match_tag YES Match a specific hashtag in the feed
no_of_posts YES Extract certain number of posts from the feed

Todos

  • Get Followers for Any User

License

MIT

Package Sidebar

Install

npm i insta_scrape_insta

Weekly Downloads

2

Version

1.2.6

License

MIT

Unpacked Size

32.8 kB

Total Files

8

Last publish

Collaborators

  • whiplash5057