instagram-nodejs
Auth and get followers on instagram with nodejs
Join us with gitter: https://gitter.im/nodejs-instagram/Library
Important : you must update csrf token and sessionId only if password was changed
To install from npm repository (I recommended use yarn, but you can use npm):
yarn add instagram-nodejs-without-api
You can get instagram followers with next code:
let Instagram = ;Instagram = Instagram;
Follow/unfollow
Inst = InstcsrfToken = 'your-csrf'InstsessionId = 'your-session-id'Inst //follow "kevin"Inst //unfollow "kevin"
Like/unlike
//get media id by url and like Insta //get media id by url and unlike Insta
Get feed
let pageFirst = Insta
Get user media
//... auth (look up) //for example: get 12 first media entries for "kevin" // 0 - if you need to get first page // next cursor : r.page_info.end_cursor Insta
Get media by hashtags and locations
Insta //search posts by hashtag "Eurovision" Insta
When you pass items counter param instagram create pagination tokens on all iterations and gives on every response end_cursor, which the need to pass on next feed request
You can get user id with Inst.getUserDataByUsername() method
Star this repository on github, please. Thank you