ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

bot.unfollow doesn't work anymore #288

Closed colellla closed 4 years ago

colellla commented 7 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here:

Code:

# There is no error. It just doesnt make anything but says everything works fine

bot = Bot()
bot.unfollow(bot.user_id)

Error/Debug Log:

There is no error. It just doesnt make anything but says everything works fine

Describe your issue

Hello, I tried the script for a couple of weeks. Everything works fine besides the bot.unfollow() command. I am not sure but I think it worked some weeks ago. Now I recognized that when I typ to unfollow either the user_id oder the username. It does not unfollow. There is no error log. May it be possible that Instagram changed their api?

Thank you.

ohld commented 7 years ago

@sudoguy

colellla commented 7 years ago

@sudoguy do you know why? =) Thank you anyway

simongomez95 commented 7 years ago

Are you trying to unfollow yourself or ???

colellla commented 7 years ago

I tried different things. I wrote a bot that follows people, write them into a text file and than unfollow the same people from the text file. It worked at the beginning. Than I recognized that the unfollow didn't work anymore. Then I tested just the bot.unfollow command without the whole code. With the user-id, the username and nothing happened. I tried different usernames and ids without success. Seems like Instagram may changed something in their api. I don't know. Does the unfollow function work for you? @simongomez95

colellla commented 7 years ago

I found the problem. It was due to the settings at the beginning:

filter_users=True (must be true)

When changed to False it doesn't work. Thank you anyway. =)

simongomez95 commented 7 years ago

Oh sorry, I was confused by your code example.

Glad you could work it out! Have fun with the bot :)

henry-white89 commented 7 years ago

Thanks for the workaround @colellla I managed to get it working from my end.

Unfortunately for the purposes of my script I need filter_users = False so that I can follow private accounts. Is there a solution so that I can either:

Any help is much appreciated :+1: @ohld @simongomez95

popadiys commented 7 years ago

for me the unfollow doesn't work either. I've checked the code and I found the reason - there is a check_user() check on unfollow to see if it is inside the whitelist. however check_user() by default returns True. Please remove:

if self.check_user(user_id):
    return True  # whitelisted user

from def unfollow(self, user_id) in bot_unfollow.py

msarami commented 6 years ago

hi i use filter_users = False to follow business accounts and now bot.unfollow_everyone() doesn't work!! how i can cancel private and business filter when filter_users is true?
@ohld @simongomez95

stale[bot] commented 6 years ago

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.

zayaerme commented 6 years ago

@colellla i need help with unfollowing followed list. Can you help me on that ?

bruvv commented 4 years ago

Closing this since its a very old issue. If this is still an issue please open a new one.