InstaPy icon indicating copy to clipboard operation
InstaPy copied to clipboard

A 'temporary block' issue with UnFollowing.

Open crowg opened this issue 7 years ago • 39 comments

I keep getting this message while trying to run an UnFollow script.

"INFO [2019-02-19 10:55:00] [] Ongoing Unfollow [11/72]: now unfollowing 'b'''... WARNING [2019-02-19 10:56:17] [] Phew! Last unfollow is not verified. ~'' might be temporarily blocked from unfollowing

WARNING [2019-02-19 10:59:22] [] There is a serious issue: 'temporary block'! ~leaving Unfollow-Users activity INFO [2019-02-19 10:59:22] [] --> Total people unfollowed : 10"

My "session.unfollow_users" is set to 300, But due to all the settings I have put in place it only unfollows less then 100 at a time. I know that I am not ShadowBanned or Blocked from Unfollowing cuz I can still unfollow people on my Phone and on my Laptop. Plus when I shutdown the program and immediately run it again it will give the same message after unfollowing a few profiles. I have looked up this type of issue from the past and due to the major Instapay update all solutions that are given are confusing and do not offer a solution now. If anyone is familiar with this issue and the new updates to instapy your help will be greatly appreciated. Thank you.

crowg avatar Feb 19 '19 21:02 crowg

I have that same problem

xist123 avatar Feb 20 '19 16:02 xist123

I have also the same issue ..

alexandreDanthine avatar Feb 21 '19 20:02 alexandreDanthine

I am also getting the same issue

hetasanghvi-zz avatar Feb 22 '19 17:02 hetasanghvi-zz

@timgrossmann unfollow not working

xist123 avatar Feb 23 '19 19:02 xist123

Unfollow non-followers seems to be working fine (for me) but unfollow from 'customList' is when I get the temporary block warning...

booksix avatar Feb 24 '19 04:02 booksix

I've also been having this issue, looks like it's been around for a couple weeks.

It doesn't look like an actual temporary block, because I'm able to click the unfollow button to successfully.

It looks like when the unfollow window that pops up it doesn't successfully click the unfollow button. Not sure if it's a timing thing? Will attempt testing with a longer wait.

Open to any other suggestions.

vibhuarul avatar Feb 26 '19 03:02 vibhuarul

Same here.. any update?

rafaelrpg avatar Feb 27 '19 13:02 rafaelrpg

Tried with changing waits, it didn't make a difference. Can't seem to figure out why it doesn't click the "Unfollow" in the confirmation dialog.

@timgrossmann, @sionking , @uluQulu thoughts on things to try to fix unfollow_users?

vibhuarul avatar Feb 27 '19 13:02 vibhuarul

It looks like the following line of code in the confirm_unfollow function from unfollow_util, doesn't seem to register the unfollow_button, even though it's actually there.

            if unfollow_button.is_displayed():
                click_element(browser, unfollow_button)
                sleep(2)
                break

I added the follow line of code to attempt to click the button regardless, and it seems to have fixed it.

            else:
                try:
                    click_element(browser, unfollow_button)

vibhuarul avatar Mar 01 '19 03:03 vibhuarul

code failed

except in line

File "/Users/gezgin/InstaPy/instapy/unfollow_util.py", line 1345

        if unfollow_button.is_displayed():
            click_element(browser, unfollow_button)
            sleep(2)
            break

        else: 
            try: click_element(browser, unfollow_button)

    except (ElementNotVisibleException, NoSuchElementException) as exc:
        # prob confirm dialog didn't pop up
        if isinstance(exc, ElementNotVisibleException):
            break

        elif isinstance(exc, NoSuchElementException):
            sleep(1)
            pass

xist123 avatar Mar 01 '19 15:03 xist123

your tab spacing is probably the issue. the click_element should be on the next line and indented one space from the try

vibhuarul avatar Mar 01 '19 16:03 vibhuarul

@vibhuarul I can not run.

Can you email me the unfollow_util.py file?

[email protected]

xist123 avatar Mar 02 '19 17:03 xist123

I added below code, it seems to be working fine.

`else: try: click_element(browser, unfollow_button)

            except (ElementNotVisibleException, NoSuchElementException) as exc:
            # prob confirm dialog didn't pop up
                if isinstance(exc, ElementNotVisibleException):
                    break

                elif isinstance(exc, NoSuchElementException):
                    sleep(1)
                    pass`

hetasanghvi-zz avatar Mar 06 '19 18:03 hetasanghvi-zz

The code does not fail for me. However, the error is still there. Any thoughts?

alexandreDanthine avatar Mar 09 '19 10:03 alexandreDanthine

@CharlesCCC any idea of this warning? same issue here #3664 . Kind regards.

willkwolf avatar Apr 07 '19 03:04 willkwolf

dear all, as it cleared said from the message "temporary block" ...

from the OP, 100 at a time still a lots. depend on how often you run, let's say if you run 10 times a day, that is 1000 unfollows, Instagram automatically trigger the flag and set you account as suspicious and block. The only way and simplest way to resolve it just to reduce the amount of activities.

CharlesCCC avatar Apr 08 '19 14:04 CharlesCCC

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

stale[bot] avatar May 08 '19 14:05 stale[bot]

Seems that the problem is still there..

WARNING [2019-05-15 12:20:13] [gevor] Phew! Last unfollow is not verified. ~'gevor' might be temporarily blocked from unfollowing WARNING [2019-05-15 12:23:28] [gevor] There is a serious issue: 'temporary block'! ~leaving Unfollow-Users activity INFO [2019-05-15 12:23:28] [gevor] --> Total people unfollowed : 0

That's an error I get trying to unfollow. I'm running with headless_browser=False so I can see what's going on. There is an unfollow confirmation window popup, which instapy doesn't seem to register. I can manually click the unfollow button, which works perfectly. So my assumption is that I am not blocked.

Gevoraway avatar May 15 '19 10:05 Gevoraway

your tab spacing is probably the issue. the click_element should be on the next line and indented one space from the try

@vibhuarul I'm having hard time inserting your code into unfollow_util.py Can you please send me your file or the code with correct formatting? Thanks

@hetasanghvi It looks like it worked in your case. I can't get that piece of code to work for me. I get "unexpected unindent" error. Could you please send me the correct code or the entire unfollow_util.py file? [email protected]

Thanks!

Gevoraway avatar May 15 '19 20:05 Gevoraway

dear all, as it cleared said from the message "temporary block" ...

from the OP, 100 at a time still a lots. depend on how often you run, let's say if you run 10 times a day, that is 1000 unfollows, Instagram automatically trigger the flag and set you account as suspicious and block. The only way and simplest way to resolve it just to reduce the amount of activities.

This is not true. If you manually try, it works. It's just the bot failing to perform the action and assuming there is a block.

y2kappa avatar May 18 '19 22:05 y2kappa