mifi / SimpleInstaBot

Simple Instagram bot GUI
MIT License
607 stars 87 forks source link

Bot dont detect action dialog #78

Open MrAdex77 opened 3 years ago

MrAdex77 commented 3 years ago

Hi, i was testing a bit bot i lost already 3 accounts, its all because of too high follow rate but i figured out that bot dont detect anymore somehow action blocked dialog, even when it appeared it still went farther to follow and like

mifi commented 3 years ago

is it possible you can share a screenshot of how the action blocked dialog looks? maybe it has changed and that could be why it doesn't detect it anymore

MrAdex77 commented 3 years ago

@mifi , unfortunately i couldnt see the dialog, but i can share the logs, its already 4 account rip, could you notify me when the problem would be fixed? instagrambot_failed

mifi commented 3 years ago

Not much I can do about this unfortunately. This is Instagram detecting the bot somehow. I have no idea how.

MrAdex77 commented 3 years ago

Okay, thank you for your response.

MrAdex77 commented 3 years ago

Hi, by testing the function what you provided by instauto isActionBlocked(), i found out that its not detecting the dialog correctly, below i provide screenshot which functions i tried and it didnt found it out by running pogram( by testing in google chrome dev console it did)
puperror by changing: if ((await instagram.page.$x('//*[contains(text(), "Działanie zablokowane")]')).length > 0) return true; to: if ((await instagram.page.waitForXPath('//*[contains(text(), "Spróbuj później")]')) !== null) return true; it worked finally correctly for me

mifi commented 3 years ago

THanks for your research. Doesn't the bot successfully change language to english for you? maybe that's the issue. Also, i'm not sure if waitForXPath is safe, because if there is no action blocked dialog, wouldn't it wait forever?

MrAdex77 commented 3 years ago

THanks for your research. Doesn't the bot successfully change language to english for you? maybe that's the issue. Also, i'm not sure if waitForXPath is safe, because if there is no action blocked dialog, wouldn't it wait forever?

i think it can be the issue too, because i have to change it manually to english, otherwise bot is going in infinity loop. I will test it out again when i will have a bit more time, i implemented waitForXPath and it work pretty good for now and detect dialog for me, as a default it is waiting only 30 seconds for showing action, but you can change default to your own time like 10 sec etc