mifi / SimpleInstaBot

Simple Instagram bot GUI
MIT License
601 stars 85 forks source link

Measures to prevent bot detection #147

Open MichaMeyer opened 2 years ago

MichaMeyer commented 2 years ago

Hi! Thanks for this incredible tool! Nevertheless I have 2 problems:

1.) I always get an "Save your login info screen" after login, which is not recogniced by the bot.. the bot then ends with an error: Failed to run Try the troubleshooting button. Error: Protocol error (Runtime.callFunctionOn): Could not find object with given id

if i am fast enough i can skip the screen before bot does react grafik

2.) I get always blocked after the first UNFOLLOW after a few moments:

grafik

here the log LOGS FROM LAST RUN 5:56 PMNo cookies found 5:56 PMSetting language to English (en) 5:56 PMWaiting 1 sec 5:56 PMWaiting 4 sec 5:56 PMFound language selector 5:56 PMAlready English language 5:56 PMWaiting 1 sec 5:56 PMPressing button: Accept cookies dialog 2 button 1 5:56 PMWaiting 18 sec 5:56 PMNo login page button, assuming we are on login form 5:56 PMWaiting 2 sec 5:56 PMWaiting 1 sec 5:56 PMWaiting 9 sec 5:57 PMStill not logged in, trying to reload loading page 5:57 PMWaiting 8 sec 5:57 PMSetting language to English (en) 5:57 PMWaiting 2 sec 5:57 PMWaiting 4 sec 5:57 PMFound language selector 5:57 PMAlready English language 5:57 PMSaving cookies 5:57 PMHave followed/unfollowed 0 in the last hour 5:57 PMHave followed/unfollowed 0 in the last 24 hours 5:57 PMHave liked 0 images in the last 24 hours 5:57 PMNavigating to user mike_myer_ss 5:57 PMGoto https://www.instagram.com/mike_myer_ss 5:57 PMWaiting 2 sec 5:57 PMUnfollowing currently followed users who were auto-followed more than 5 days ago (limit 94)... 5:57 PMUnfollowing users, up to limit 94 5:57 PMHas more pages (current 1) 5:57 PMNavigating to user ayaa.sa3d 5:57 PMGoto https://www.instagram.com/ayaa.sa3d 5:57 PMWaiting 3 sec 5:57 PMUnfollowing user ayaa.sa3d 5:57 PMWaiting 2 sec 5:58 PMWaiting 9 sec 5:58 PMAction Blocked, waiting 3 hours... 5:58 PMDeleting cookies 5:58 PMWaiting 17245 sec

So what's the problem?

It seems to me that there could be several behaviours that Instagram considers suspicious:

  1. The user's pages are called up via a URL that presumably does not appear on the page currently being displayed, which makes it clear to Insta that a BOT is running?
  2. At every start, the cookie query comes up again because the cookies are deleted again. -> rather conspicuous
  3. Every time I start Insta I get an email that a new unknown browser has logged in -> isn't that unrealistic and alerts Insta even more?

Looking forward to your feedback!

Mike

mifi commented 2 years ago

hi

  • The user's pages are called up via a URL that presumably does not appear on the page currently being displayed, which makes it clear to Insta that a BOT is running?

which URL's are you talking about? probably the graphql queries, yea I agree they could be suspicious. although probably some chrome extensions will use them too, the best would be to not

  • At every start, the cookie query comes up again because the cookies are deleted again. -> rather conspicuous

cookies are not deleted every startup under normal operation. cookies are only deleted if you log out from the bot or I think if there is some critical error.

3. Every time I start Insta I get an email that a new unknown browser has logged in -> isn't that unrealistic and alerts Insta even more?

Yea, this should be improved. See #119

MichaMeyer commented 2 years ago

Hi!

which URL's are you talking about?

I mean f.e https://www.instagram.com/ayaa.sa3d (user to unfollow) Tried again and get immediately blocked after this user... is it possible to change the list and skip this one for testing?

mifi commented 2 years ago

you could add the username to unfollowed.json (search issues to see how other people did it)