jlobos / instagram-web-api

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

Why are we limited to a max of 49 comments when using getMediaComments? #155

Open sbr2567 opened 4 years ago

sbr2567 commented 4 years ago

I'm very confused while we're not able to get more then 49 comments per request. You don't really offer an explanation in the documentation. If it's the case of limiting the calls to stay undetected, I get it. But it would be very useful if we could at least get more comments in the form of multiple separate requests within those boundaries. So go through 1,000 comments, but retrieve only 49 per request until reaching the bottom.

Can this become a possibility?

Thanks.

codexJoin commented 4 years ago

Why instagram only returns 49 per request.

For several requests, use the end_pointer system, the page, each request as a page, returns a new page, with more than 49 results.

Define a global variable with name "globalPointer", and after every request, memorize the pointer, and execute new request with the new pointer.

sbr2567 commented 4 years ago

Okay, and this can also be achieved for comment sections too?

On Sun, 28 Jun 2020, 6:21 am codexJoin, notifications@github.com wrote:

Why instagram only returns 49 per request.

For several requests, use the end_pointer system, it is a "pager", each request made with the pager, returns a new page, with 49 more results.

Define a global variable with name "globalPointer", and after every request, memorize the pointer, and execute new request with the new pointer.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jlobos/instagram-web-api/issues/155#issuecomment-650617986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4732TKWRUEUQBTHAIGQ5DRYZIEZANCNFSM4OJ7RFUQ .

codexJoin commented 4 years ago

Ok, e isso também pode ser alcançado para seções de comentários também? ... On Sun, 28 Jun 2020, 6:21 am codexJoin, @.***> wrote: Why instagram only returns 49 per request. For several requests, use the end_pointer system, it is a "pager", each request made with the pager, returns a new page, with 49 more results. Define a global variable with name "globalPointer", and after every request, memorize the pointer, and execute new request with the new pointer. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#155 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4732TKWRUEUQBTHAIGQ5DRYZIEZANCNFSM4OJ7RFUQ .

Yes. Remember, the instagram limits the results per request. In case of comments is 49.