mifi / SimpleInstaBot

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

Unfollow "Requested" profiles #131

Closed c-chytoudis closed 2 years ago

c-chytoudis commented 2 years ago

After many days using Instagram bot I saw a list of private profiles that bot requested to follow. It's possible the bot to delete these requests with a feature like "Unfollow list" which already has but only for already following profiles? Thank you.

image

image

mifi commented 2 years ago

Hi. the bot should already unfollow these "requested" users when unfollowing. Does it not do that? if not, what error are you getting? See relevant code here: https://github.com/mifi/instauto/blob/49e72bab51f7f0342f055409deeb64c18306992b/src/index.js#L306

c-chytoudis commented 2 years ago

Hello, when bot is going to follow a private profile, after the button changes from "follow" to "requested", has this error log:

image

When I use this "Unfollow list" action to unfollow a list of requested profiles:

image

I get this:

image

Bot does not unfollow requested profiles if the user does not accept the follow request first. The bot only unfollows requested profiles when the user accepts the request even if the user accepts it after several days.

mifi commented 2 years ago

Ok, this is a bug then that needs to be fixed

mifi commented 2 years ago

can try the newest version - i did some minor improvement that might fix this

c-chytoudis commented 2 years ago

Hello, I tried new version 1.10.4 but the issue is still the same.

When I try Unfollow list:

image

I still have this error:

image

For these Requested profiles:

image

When I was looking at followed.json file I found failed:true (I don't know if this is a feature):

image

failed:true happens when bot tries to follow private profiles and Follow button changes to Requested as I posted before:

image

mifi commented 2 years ago

Ok, I would really like to know what is the HTML content of the "Requested" button. I think this is similar to this issue #79

Could you try to provide me the HTML of the button, like the person did here: https://github.com/mifi/SimpleInstaBot/issues/79#issuecomment-887634044

Even better, copy (CTRL-C) and then paste the HTML here

c-chytoudis commented 2 years ago

innerHTML: <div class="_ab8w _ab94 _ab99 _ab9f _ab9k _ab9p"><div class="_ab8w _ab94 _ab99 _ab9f _ab9m _ab9o _abb0"><button class="_acan _acap _acat" type="button"><div class="_aacl _aaco _aacw _aad6 _aade">Requested</div></button></div></div>

outerHTML: <div class="_ab8w _ab94 _ab99 _ab9f _ab9k _ab9p _abb3"><div class="_ab8w _ab94 _ab99 _ab9f _ab9k _ab9p"><div class="_ab8w _ab94 _ab99 _ab9f _ab9m _ab9o _abb0"><button class="_acan _acap _acat" type="button"><div class="_aacl _aaco _aacw _aad6 _aade">Requested</div></button></div></div></div>

CTRL+C of the button: <button class="_acan _acap _acat" type="button"><div class="_aacl _aaco _aacw _aad6 _aade">Requested</div></button>

Just to inform you that after Requested button clicked, this popup appears: Screenshot_5

With this HTML of the button Unfollow: <button class="_a9-- _a9-_" tabindex="0">Unfollow</button>

mifi commented 2 years ago

thanks for the details. I think I have now fixed this issue, will push a new version