softcoder24 / insta_share

Share a post into your Instagram account using the requests library.
Other
27 stars 10 forks source link

Can't login - 'unusual activity' #11

Open alexlostorto opened 1 year ago

alexlostorto commented 1 year ago

Running the script will result in a checkpoint where the user is prompted to reset their password due to 'unusual activity'.

Traceback (most recent call last):
  File "c:\Users\AlexLoStorto\PycharmProjects\pythonProject\Other\insta_share\main.py", line 12, in <module>
    print(insta.login('alexlostorto', 'aforementioned'))
  File "c:\Users\AlexLoStorto\PycharmProjects\pythonProject\Other\insta_share\insta_share\instagram.py", line 44, in login
    if json_data["authenticated"]:
KeyError: 'authenticated'