Skip to content

Latest commit

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

instagram-nodejs

Auth and get followers on instagram with nodejs

License - BSD-3-Clause

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:

Instagram=newInstagram()Instagram.getCsrfToken().then((csrf)=>{Instagram.csrfToken=csrf;}).then(()=>{Instagram.auth('inst-your-username','inst-your-password').then(sessionId=>{Instagram.sessionId=sessionIdInstagram.getUserDataByUsername('username-for-get').then((t)=>{Instagram.getUserFollowers(JSON.parse(t).user.id).then((t)=>{console.log(t);// - instagram followers for user "username-for-get"})})})})

Follow/unfollow

Inst=newInstagram()Inst.csrfToken='your-csrf'Inst.sessionId='your-session-id'Inst.follow(3,0)//follow "kevin"Inst.follow(3,1)//unfollow "kevin"

You can get user id with Inst.getUserDataByUsername() method

Star this repository on github, please. Thank you

About

Auth and get followers on instagram with nodejs

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages