Instapy: "Image was NOT liked! You are have a BLOCK on likes!" but account is not blocked

Created on 2 Jul 2019  Ā·  52Comments  Ā·  Source: timgrossmann/InstaPy

Hi everyone,

I am using a script in order to interact with users (liking their post), but it doesn't seem to work anymore, I have checked that my account is not Blocked, I can like on Instagram, but its not working on the bot. It stopped working maybe 2 days ago
I did git pull

this is the output:

INFO [2019-07-02 22:57:48] [user]  Getting gabby_38.11 image list...
INFO [2019-07-02 22:57:51] [user]  Post [1/2]
INFO [2019-07-02 22:57:51] [user]  https://www.instagram.com/p/BzWPXsKHMhW/
INFO [2019-07-02 22:57:53] [user]  Image from: user
INFO [2019-07-02 22:57:53] [user]  Link: https://www.instagram.com/p/BzWPXsKHMhW/
INFO [2019-07-02 22:57:53] [user]  Description: No description
INFO [2019-07-02 22:58:01] [user]  --> Image Liked!
INFO [2019-07-02 22:58:29] [user]  -------- WARNING! Image was NOT liked! You are have a BLOCK on likes!
INFO [2019-07-02 22:58:36] [user]  Sessional Live Report:
    |> LIKED 0 images  |  ALREADY LIKED: 5
    |> COMMENTED on 0 images
    |> FOLLOWED 0 users  |  ALREADY FOLLOWED: 0
    |> UNFOLLOWED 0 users
    |> LIKED 0 comments
    |> REPLIED to 0 comments
    |> INAPPROPRIATE images: 2
    |> NOT VALID users: 0

the code is =>

session = InstaPy(username=insta_username,
                  password=insta_password,
                  headless_browser=False,
                  multi_logs=True)
session.login()
session.set_relationship_bounds(enabled=False,
                 potency_ratio=-1.21,
                  delimit_by_numbers=False,
                   max_followers=4590,
                    max_following=5555,
                     min_followers=45,
                      min_following=77)
    #session.set_do_comment(True, percentage=25)
    session.set_simulation(enabled=False)
    session.set_skip_users(skip_private=True,
                       private_percentage=100,
                       skip_no_profile_pic=False,
                       no_profile_pic_percentage=100,
                       skip_business=False,
                       business_percentage=100,
                       skip_business_categories=[],
                       dont_skip_business_categories=[])
    session.set_user_interact(amount=2, randomize=True, percentage=100, media='Photo')
session.set_do_like(enabled=True, percentage=100)
session.interact_user_followers(['user'], amount=1600, randomize=False)

thank you for your help

wontfix

Most helpful comment

to be adapted to your environment and operating system...

import schedule
import os

def clear_cookie():
os.remove("/Users/username/InstaPy/logs/your_account/your_account.pkl")

schedule.every().day.at("09:00").do(clear_cookie).tag("daily-tasks")

etc...

All 52 comments

Stop your bot, delete the cookie file in your folder and then reset your bot. Normally you should receive a "suspicious login attempt" first but then everything should work again.

same issue here. I deleted the cookie file last night, than I pull updates and rerun the bot but I get this error message again, but after having liked 90 pictures, so I was able to like something.
The program started to have this problem on July 1st.

@FancyRobot , where is the cookie file in the folder ? please

proxy?

@sionking no proxy either

Not for me.

@sionking I have a similar problem. When the bot likes a picture - the like count goes up one (say 14 to 15) in the chrome window.

However if I look at that photo from the different account (or not logged into any account) - that like is not registered, and the amount of likes is still 14.... O.o

I have same problem on mine. I am not using proxy. I tried reset my modem so I reccived new IP. Then bot works for half a day then it start show same error. I have very small amount of activity 10 likes 2 follow and 4 comments every hour.

@sionking I have a similar problem. When the bot likes a picture - the like count goes up one (say 14 to 15) in the chrome window.

However if I look at that photo from the different account (or not logged into any account) - that like is not registered, and the amount of likes is still 14.... O.o

Oh, and likes from the phone (under the same IP network) work just fine

Instagram updates. They've made some changes in the way they detect bot activity. The same account can behave differently depending on the device and origin. Perhaps some changes to the UI have been made recently made as well. ~24 hours ago

I have just tried after one day off without running the bot. No pictures have been liked, since the first one in the feed.

edit: any update on this matter?

seems insta behavior changed recently, and it seems they now track the activities with the cookie. You can delete the cookie and the bot is able to work for a couple of hours again, and then it will block the bot again. seems to be happening with a lot of bots not just instapy.

Instagram is preventing login from the bot. The suspicious login screen appears on a separate device, but does not allow bot to login even if you acknowledge "It was me".

Deleting the cookie file does not help. The bot outputs a CRITICAL error, "Wrong login data!".

Looks like their machine learning is getting smart with this sort of activity.

@christophe-duc What other bots have you seen experiencing issues recently?

@jtrieuDev When you start the bot you'll see a line: "Workspace in use:"

Go into that directory and then go into accountname directory, then logs, and look for for accountname_cookie.pkl

Instagram is preventing login from the bot. The suspicious login screen appears on a separate device, but does not allow bot to login even if you acknowledge "It was me".

No such problem here, the bot can login as many times as I want, without problem. I just get a mail each time it happens.

Deleting the cookie file does not help. The bot outputs a CRITICAL error, "Wrong login data!".

that's another issue, then....

Looks like their machine learning is getting smart with this sort of activity.

@christophe-duc What other bots have you seen experiencing issues recently?

Jarvee / socialsensei seems to have the same problems.

Interesting how this works btw.
When bot likes the post - it shows like as going through, like count goes up.
But if you leave the page and come back to it again - like did not go through. It does not give ā€œaction blockedā€ either

I did some tests. If I run InstaPy on my desktop Windows computer it works without problems: pictures are being liked, accounts are being followed and so.
The problems come up when I run the bot from my Cloud VPS server. It has worked until one week ago, now It works no more. :(
I don't know if my Cloud VPS server IP has been banned or not... I did not setup aggressive bot activities for sure.
Really disappointed.

Interesting how this works btw.
When bot likes the post - it shows like as going through, like count goes up.
But if you leave the page and come back to it again - like did not go through. It does not give ā€œaction blockedā€ either

Im getting this problem too, however when I comment I get the browser notification of "unable to comment", funny how unliking/unfollowing works fine

Same problem here...

I'm started to get the same issues now.

INFO [2019-07-05 17:46:51] [user] -------- WARNING! Image was NOT liked! You are have a BLOCK on likes!

:(

Any update?

Same here...

Same. i tried deleting the cookie as well and it didn't work. Then I tried using quickstart.py because I thought maybe I did something wrong the code. But no, I get the same result each time

`OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-07-06 09:39:11] [goodboykimm] Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo

Cookie file not found, creating cookie...

.................................................................
INFO [2019-07-06 09:40:11] [goodboykimm] Logged in successfully!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
INFO [2019-07-06 09:40:11] [goodboykimm] Saving account progress...
INFO [2019-07-06 09:40:14] [goodboykimm] Tag [1/1]
INFO [2019-07-06 09:40:14] [goodboykimm] --> b'natgeo'
INFO [2019-07-06 09:40:23] [goodboykimm] desired amount: 10 | top posts [disabled]: 9 | possible posts: 16931662
INFO [2019-07-06 09:40:29] [goodboykimm] Like# [1/10]
INFO [2019-07-06 09:40:29] [goodboykimm] https://www.instagram.com/p/Bzkq7ujnAAm/
INFO [2019-07-06 09:40:32] [goodboykimm] Image from: b'animalonplanet'
INFO [2019-07-06 09:40:32] [goodboykimm] Link: b'https://www.instagram.com/p/Bzkq7ujnAAm/'
INFO [2019-07-06 09:40:32] [goodboykimm] Description: b'A Whaleshark approaches from the depths of the Ningaloo Reef.nPhoto: @tomcannonphotography n#Animalonplanet'
INFO [2019-07-06 09:40:40] [goodboykimm] --> Image Liked!
INFO [2019-07-06 09:41:09] [goodboykimm] -------- WARNING! Image was NOT liked! You are have a BLOCK on likes!
INFO [2019-07-06 09:41:09] [goodboykimm] Tag: b'natgeo'
INFO [2019-07-06 09:41:09] [goodboykimm] Liked: 0
INFO [2019-07-06 09:41:09] [goodboykimm] Already Liked: 0
INFO [2019-07-06 09:41:09] [goodboykimm] Commented: 0
INFO [2019-07-06 09:41:09] [goodboykimm] Followed: 0
INFO [2019-07-06 09:41:09] [goodboykimm] Inappropriate: 0
INFO [2019-07-06 09:41:09] [goodboykimm] Not valid users: 0

INFO [2019-07-06 09:41:09] [goodboykimm] Sessional Live Report:
|> No any statistics to show

On session start was FOLLOWING 575 users & had 433 FOLLOWERS
[Session lasted 1.97 minutes]

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2019-07-06 09:41:09] [goodboykimm] Session ended!
oooooooooooooooooooooooooooooooooooooooooooooooooooooooo
`

No chances to get running, this is the error right now:

Image was not able to get Liked! maybe blocked ?

Just tried with a VM on my desktop pc and it's running without issues. InstaPy on VPS does not run, at all. How could I check if that IP has been banned?

@RRphoto

I dont think it is because the IP is blocked. I run InstaPy from my raspberry. If I let the script run it gets blocked, but if I go online through the browser manually I can like Images on Instagram.

So it must have something to do with the InstaPy program itself and not the IP Address right?

@skaeslin When your InstaPy script get blocked, did you get a popup of Instagram saying that your action was blocked ?

During your manual test, were you using the same chrome session than your InstaPy used ? Have you tried to do more than one like manually to see if you were not blocked after few actions ?

@IKDH
I get this message WARNING! Image was NOT liked! You are have a BLOCK on likes!

What exactly do you mean with "chrome session"?
I“ve used chromium to go to instagram manually. I“ve liked around 10 pictures without a problem. Very weird....

After that I tried it again with InstaPy and got WARNING! Image was NOT liked! You are have a BLOCK on likes! again...

Someone was talking about the problem being the cookies? Is that confirmed? Because according to @RRphoto this is ony a temporary fix.

But still, for the time being could we solve this temporary with perhaps deleting the cookies automated every 2 hours with cron? (That“s just me thinking out loud, of course this is not a fix or even anywhere near it...)

For some it works for others not, I think it depends on your level of block. So far it works for me, I reset the cookie every 4 hours and I am fine. It's been running all day, without any trouble liking or F/UF.

@christophe-duc how do you reset it every 4 hours? Would be really nice if you could tell me, so I can try that out as well.

to be adapted to your environment and operating system...

import schedule
import os

def clear_cookie():
os.remove("/Users/username/InstaPy/logs/your_account/your_account.pkl")

schedule.every().day.at("09:00").do(clear_cookie).tag("daily-tasks")

etc...

Would it be possible to just run chrome in incognito? then just restart the bot when it crashes, no cookies get saved that way

What exactly do you mean with "chrome session"?
I“ve used chromium to go to instagram manually. I“ve liked around 10 pictures without a problem. Very weird....

Was it the same chrome windows that your InstaPy was using ? Or did you open another chrome windows ? If you opened another chrome windows, did you use the same cookie than your InstaPy or did you generate a new one ?

@RRphoto

I dont think it is because the IP is blocked. I run InstaPy from my raspberry. If I let the script run it gets blocked, but if I go online through the browser manually I can like Images on Instagram.

So it must have something to do with the InstaPy program itself and not the IP Address right?

I have two instagram accounts, I tried on both with InstaPy installed on my cloud VPS , it does not work. In both logs folder account I don't have the cookie file, so it is not related to the cookie file.
At the same time, I am running InstaPy from my Synology NAS where I created a VM with Ubuntu and InstaPy.: it works.

I don't know.

@christophe-duc Thanks a lot!!

@IKDH it was another cookie I that got used for liking images in instagram manually.

I just deleted the cookie from InstaPy. After that InstaPy was able to like 4 pictures before it got blocked again. -> WARNING! Image was NOT liked! You are have a BLOCK on likes!

Hey, i had the same problem and have found a workaround, working for the last 12h and 600+ likes.

First I deleted the cookie.
Second I used all randomize features I could find example: like on 60% or comment on 11%.
Third I used the delay Funktion to make pauses of several seconds 40 - 120 after a like or comment also randomized.

In conclusion the bot works a lot slower but it works.

Hope I could help.

Sent with GitHawk

How did you integrate the delay function?

Same issue over here! Maybe it has something to do with the general selenium driver detactability mentioned here. https://stackoverflow.com/questions/33225947/can-a-website-detect-when-you-are-using-selenium-with-chromedriver

@JKern001 take a look at the documentation it’s a standard feature:)

Sent with GitHawk

@beatdeddeer works for me but only for 1 or 2 follows. My delays are also very high and percentages are very low also i got everything on maximum level of randomization. Are you using a Proxy?

When i use my mouse to click the follow button manually it works

Seems to me like Instagram is tracking some kind of unhuman behavior but what could it possibly be?

@d4nnyboy

I do not follow people so can’t say anything about that. I do not use a proxy but a community network witch might help.

I think following is harder to do but idk sorry.

Sent with GitHawk

Sent with GitHawk

Hello, just an update on my side.
Being said that from cloud VPS I own InstaPy cannot like anything, I have tried to run InstaPy from a VM on my Synology. After an entire day (July 8th) with no issues, today the bot started to be blocked again.
I run at 3AM, 11AM, 4PM, 8PM, no more than 50 pictures liked in every session, even less.
I cannot undestand... Any update?

@RRphoto I would stop the services until we got more information. Don't risk to get a shadowbanning or banned. it's sucks :(. Probably this would take a few days or couple weeks. Instagram is just messing with everyone

@RRphoto I would stop the services until we got more information. Don't risk to get a shadowbanning or banned. it's sucks :(. Probably this would take a few days or couple weeks. Instagram is just messing with everyone

I have just stopped any activity since sunday of last week, more than one week, but nothing has changed and it looks like only few people compared than the InstaPy user population has these issues. So questions are logical enough.

After 3 Days with the same issue i got that thing running again. I just reset my account password, refresh ip and reset the cookiefile. Now i keep running slow with the pagedelay and the amount of likes per day.
Actually are 200 likes done and all seems fine again.

same here, running slow is ok, I haven't been blocked for a 3-4 days now. No need to reset cookie anymore.

@FancyRobot s fix worked for me

Is it possible that the block comes up while checking for already liked images? I wonder how they recognize this?

Same problem. Any updates?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue

delete cookie will solve this problem

delete cookie will solve this problem

still having a problem even though i have deleted the cookie file. The weird thing is, I run 2 accounts at the same time. Same settings. But 1 leads to block on like, other account works perfectly fine. Do you implement delay function?

Was this page helpful?
0 / 5 - 0 ratings