github-follow-bot icon indicating copy to clipboard operation
github-follow-bot copied to clipboard

Nothing to unfollow

Open david-kariuki opened this issue 1 year ago • 6 comments

Hello there, I sam still getting the Nothing to unfollow message when trying to unfollow

david-kariuki avatar Feb 07 '23 13:02 david-kariuki

Please, further describe context. What command are you using?

Correia-jpv avatar Feb 11 '23 22:02 Correia-jpv

All the unfollow commands are not working

david-kariuki avatar Feb 14 '23 08:02 david-kariuki

Would you be able to share logs?

Correia-jpv avatar Feb 23 '23 11:02 Correia-jpv

This is the error I'm getting now

 Traceback (most recent call last):
    File "/home/user/bash/github-follow-bot-master/bot_unfollow.py", line 38, in <module>
    bot = GithubAPIBot(
    ^^^^^^^^^^^^^
    File "/home/user/bash/github-follow-bot-master/GithubAPIBot.py", line 68, in __init__
    self.getFollowings()
    File "/home/user/bash/github-follow-bot-master/GithubAPIBot.py", line 226, in getFollowings
    self.followings.extend(self.getUsers(url=f"https://api.github.com/users/{username}/following"))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/user/bash/github-follow-bot-master/GithubAPIBot.py", line 192, in getUsers
    and not (user["login"] in self.followings)
    ~~~~^^^^^^^^^
    TypeError: string indices must be integers, not 'str'

david-kariuki avatar Feb 24 '23 07:02 david-kariuki

Ok, provide more context. What exactly is the command you are running? Have you changed any code at all?

Correia-jpv avatar Feb 24 '23 12:02 Correia-jpv

No, I have not changed the code. I've cloned this again and ran it on opera using python3

python3 bot_unfollow.py -a

david-kariuki avatar Feb 25 '23 19:02 david-kariuki