Open ajmeese7 opened 3 years ago
That means you are doing it very fast. set timeouts for each account.
@kingbotss I know that's one possible solution, but I'm looking for something that doesn't take that long. I could easily set a random delay between 1 and 3 seconds for each request, but with thousands of followers it would take an obscene amount of time to iterate over all of them.
@ajmeese7 did you find any workable solution for that? I'm also experience the same problem =\
@ajmeese7 did you find any workable solution for that? I'm also experience the same problem =\
Nope, ended up abandoning the project so I no longer have a use case.
i found a workaround actually (if anyone still interested) - wrap the call to try/catch and if there's an error (401 usually), just relogin in the catch block.
@vaspoz , does your workaround still works for you? I have the same issue. What is interesting is that web version of Instagram is capable of loading as many followers as needed. Of course there are time intervals between the requests made by web. However, I don't see the error mentioned int his ticket at all.
Привет @igornazarov1991 nope, it was a one-time script I needed, so it was hacky and dirty. Removed it as soon as it's done the job to not embarrass myself any longer ;)
General Question
When iterating over the
items$
in theig.feed.accountFollowers
subscription feed, we have access to the user's PK, username, full name, etc. But if we want more info like the number of followers that user has, we have to make a separate request toig.user.info
with that user's PK.What I was wondering is if there is a better way to go about getting the follower count of all the followers without pinging that endpoint hundreds of times. Currently my account gets locked out every time I run the code below, because I have enough followers that making that request for every follower far exceeds the API rate limit. Is there some way we can request follower counts in bulk for a list of PK's or something, so I don't have to spam the API to get the information I'm looking for?
Thank you.
Form
Code
Error and Output
This is what happens after I go over the first few hundred users, I just have this error message pop up hundreds and hundreds of times with different user PK's in the
(numbers_here)
slot.