ricardojoserf / instagram-followers-bot

A bot for Instagram. You can follow users using a tag or in a specific location, unfollow those who dont follow-you-back, and follow-back those who follow you
483 stars 113 forks source link

AttributeError: 'InstagramAPI' object has no attribute 'username_id' #56

Closed easysports closed 4 months ago

easysports commented 2 years ago

Expected vs Actual Behavior

I have double checked the Username and Password, they are correct I am trying to run the following command python main.py -u USER -p PASSWORD -o info My password has no symbols, and two numbers Just to be sure, do I need to use quotes "" for the USER and password? Do I need to use an "@" for the username? I have tried all combinations and had no luck. I keep getting the following error

Login not successful Traceback (most recent call last): File "main.py", line 187, in main() File "main.py", line 143, in main for i in api.getTotalSelfFollowers(): File "C:\Users\12512\Desktop\GolfCarts\Insta3\LevPasha\InstagramAPI.py", line 162, in getTotalSelfFollowers return self.getTotalFollowers(self.username_id) AttributeError: 'InstagramAPI' object has no attribute 'username_id'

Any help would be appreciated, Thanks

Specifications

Python 3.8.10

Steps to Reproduce the Problem

john-szetho commented 1 year ago

I am also having this problem. Any solutions yet?

Login not successful
Traceback (most recent call last):
  File "~/instagram-followers-bot/main.py", line 187, in <module>
    main()
  File "~/instagram-followers-bot/main.py", line 143, in main
    for i in api.getTotalSelfFollowers():
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/instagram-followers-bot/LevPasha/InstagramAPI.py", line 162, in getTotalSelfFollowers
    return self.getTotalFollowers(self.username_id)
                                  ^^^^^^^^^^^^^^^^
AttributeError: 'InstagramAPI' object has no attribute 'username_id'. Did you mean: 'username'?
sahilbansalweb commented 9 months ago

got same type of error