mifi / SimpleInstaBot

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

Action Blocked issue #1

Open mifi opened 4 years ago

mifi commented 4 years ago

In instauto I'm seeing Action Blocked sometimes. I solved this by using puppeteer-extra-plugin-stealth but in SimpleInstaBot we are using electron. Not sure if this issue will arise.

https://github.com/mifi/instauto/issues/16

mifi commented 4 years ago

Can you see if logging out and then back in removes the error and if so, for how long? I could implement auto re-login upon action blocked if it turns out that helps.

Im also getting action blocked on my instauto which is running with chrome stealth, and many other people are getting these errors nowadays, so i think instagram have recently developed a smarter bot detection logic.

mifi commented 4 years ago

If your computer goes to sleep, then the app will stop. The app includes logic for preventing sleep, but it may not always work. especially if you are on a laptop.

I'm also having issues with action blocked on my bot. seems most bots are struggling with this right now:

https://github.com/timgrossmann/InstaPy/issues/5311 https://github.com/instagrambot/instabot/issues/1194 https://github.com/instabot-py/instabot.py/issues/2551 https://github.com/timgrossmann/InstaPy/issues/5304 https://github.com/timgrossmann/InstaPy/issues/5329

And all over reddit: https://www.reddit.com/r/Instagram/

I'm not entirely sure what to do right now. Need more knowledge about this. Does logging out and back in always help for you? then maybe I could implement that as a quick fix

But I think Instagram is making it harder and harder to make bots now, by using machine learning to detect usage patterns and then block the usage patterns they don't like. I even read that they are even blocking people from just using their app manually and going to other profiles to follow them in hope of follow back, because this is "fake" behavior that they want to prevent. I think it's the end of an era for instagram. It will become much more controlled and less free.

mifi commented 4 years ago

Ok, let us know how it goes

mifi commented 4 years ago

I think I've found that running on the same IP as my mobile phone is frequently using instagram on is not causing action blocked yet. When running the bot on a different home ip (in a different country) I consistently got action blocked on the first unfollow action. Even with deleting cookies after each run, and sleeping 24 hours after I got an action blocked. But when changing IP to the one running the wifi that my phone is on. it did not instantly block actions.

mifi commented 4 years ago

@irafaz were you running the bot on the same internet connection as you are using your mobile phone with the instagram app on? Is it a residential IP?

mifi commented 4 years ago

The app has a few changes and improvements now. As long as it is used on the same internet IP, which there is normal instagram activity from a phone on, I think the chances of action blocked are a lot lower, if using conservative numbers (max 150 actions per day). I've currently restarted a few bots and they have been running fine for a while now.

apollotsantos commented 3 years ago

My four instances in the same IP runs with 200 actions per day, 20 per hour. One of them is starting now. I've found that starting with 40/day and 5/hour is a good starting point. Increase 10 actions/day in every 3 or 4 days, and when reaching 100, start increasing actions per hour slowly until reaching 20. If blocked, leave Dry Running for one or two days and restart with 50/day.

mifi commented 3 years ago

wow you running 4 accounts on the same IP? total 800 actions per day from one IP and it works fine?

apollotsantos commented 3 years ago

Yes, it has been working just fine! Altough not of them are set to 200 actions per day, but that is the goal. Also, Instagram only seems to block the accounts that are added to the bot recently. The accounts that are already "used" to that many actions are not affected when the newer ones get action blocked messages.