-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account being blocked when having multiple sessions #2
Comments
Yes, I understand what you mean. Even I myself face the same issue. I believe its instagram api limits.
I will update the code soon if I get to know the instagram rate limits. |
@iSarabjitDhiman So if i want to inspect like 10k followers, 3 session ids is more than enough? |
Yes, should be enough. I usually get away with 3-4 sessions. I easily get around 25-40k followers with 3 sessions. Make sure to modify the code to add 2-4 seconds sleep time after each request. |
Should i modify your source code? or my code? Also, is recommended to use proxies? or not neccesary? |
The source code. I am planning to do it, but I am working on a project at the moment. I won't be able to do it until the next weekend. Well you can also try without the sleep time, I remember there should be some sleep time in the shuffle_session function while using multiple sessions. |
OK cool @iSarabjitDhiman I also will try changing user agents if possible, is there any specific norm to set user agents? in order to be more masked? |
Well, you can try using mobile app user agents. You may also want to update the other headers as well. The more you do is less. Instagram is way too smart while detecting these robots. |
ok @iSarabjitDhiman Just read the code, but dont know where to start modifying, will you provide an update soon? |
Yes I will as soon as I finish working on my current project. |
@iSarabjitDhiman ok, will be updated! |
@iSarabjitDhiman Im solving the code and if I find the solution, will submit a pull request, the problem is that i keep getting an error called: EDIT Here is the reference that explains the 30 redirect error |
Hey, I just updated the code. |
Hey @iSarabjitDhiman Im trying to scrape data, but every 11-12 requests to
get_user_data()
andget_user_id()
the account gets blocked. I created 2 session ids based on the same account, with amax_requests
of 9, and only limit my results to 20 of them, and yet it gets blocked, any recomendations? thanks!Later on it gets only 20 results of followers info, but it gets blocked and the 11-12 request done to get all the user info such as email and phone number, dont understand why if followed your recomendation.
The text was updated successfully, but these errors were encountered: