jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 185 forks source link

How to Scrape all the Follower Using getFollowers() Method , not working for me , when ever I put give a number to the Method it only gets 50 Profiles , is there any way to get all ? #224

Open khanakhun opened 3 years ago

khanakhun commented 3 years ago

const Instagram = require('instagram-web-api') require('dotenv').config(); const FileCookieStore = require('tough-cookie-filestore2')

const username = '' const password = ''

const cookieStore = new FileCookieStore('./cookies.json') const client = new Instagram({ username , password , cookieStore });

(async () => { await client.login() const profile = await client.getProfile(); const user = await client.getActivity(); console.log(user) // console.log(username) console.log(profile)

const followers = await client.getFollowers({ userId: '36517218556' , first : 150 }) console.log(followers)

})()

MonsieurBibo commented 3 years ago

Possible duplicate of #92, you need to use the after parameter. See this solution.