shine-jayakumar / insta-likecom-bot

Automates likes and comments on an instagram account or tag
MIT License
140 stars 30 forks source link

Do you have any delay on the code? #11

Closed MehrnazAmoon closed 2 years ago

MehrnazAmoon commented 2 years ago

Even I cant go further from the first stage :/

[] => Script ended with error : Failed to login. Incorrect username/password, or 2 factor verification is active. [] => Total time taken: 4.4608 seconds

what I see in the Chrome is asking a question on the screen and dont allow me to answer that and it failed :/

shine-jayakumar commented 2 years ago

Even I cant go further from the first stage :/

[] => Script ended with error : Failed to login. Incorrect username/password, or 2 factor verification is active. [] => Total time taken: 4.4608 seconds

what I see in the Chrome is asking a question on the screen and dont allow me to answer that and it failed :/

Would you be able to share a screenshot of Chrome when you get this question?

MehrnazAmoon commented 2 years ago

yes sure

Screenshot 2022-08-29 at 12 49 12
MehrnazAmoon commented 2 years ago

And even only one time I could accept Coockies and when its liking I got banned because its liking and commenting very fast without any delay and Instagram understand that its Bot not human, Suggesting to add some delay between each activities

Screenshot 2022-08-29 at 12 52 11
shine-jayakumar commented 2 years ago

And even only one time I could accept Coockies and when its liking I got banned because its liking and commenting very fast without any delay and Instagram understand that its Bot not human, Suggesting to add some delay between each activities Screenshot 2022-08-29 at 12 52 11

If you don't specify a delay then it would randomly chooses a delay. The cookies dialogue box isn't handled in the script. You could also try a different browser - firefox is also supported.

MehrnazAmoon commented 2 years ago

You mean that I can add delay by myself? Ofcourse I can just wanted to improve your code. But there is no random delay on your code.

shinejayakumar108 commented 2 years ago

You mean that I can add delay by myself? Ofcourse I can just wanted to improve your code. But there is no random delay on your code.

There's a random delay already added if the user doesn't specify a delay. Check instalikecomboy.py line # 260 delay = DELAY or randint(1,10)

Also, user can provide a fixed delay using --delay option through command line.