yarn add instagram-nodejs-without-api
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"})})})})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