1.2.6 • Published 5 years ago

insta_scrape_insta v1.2.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.

FlagsShorthandOptionalValue
filetype-fYESjson( return an object ) / json_file
timestamp-tYESDate and Time upto which posts should be extracted
handle-hNOInstagram Handle Name
filename-nYESCustom file name
count-cYESExtract certain number of posts from the feed
hashtag-htYESMatch 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)
KeyOptionalValue
usersNOArray of all users you want information about
cool_down_timeYESShort setTimeOuts for the Garbage Collector to do its jog
result_formatYESjson( return an object ) / json_file
result_file_nameYESCustom file name

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

KeyOptionalValue
handleNOUsers Instagram Handle
timestampYESDate and Time upto which posts should be extracted
match_tagYESMatch a specific hashtag in the feed
no_of_postsYESExtract certain number of posts from the feed

Todos

  • Get Followers for Any User

License

MIT