althonos / InstaLooter

Another API-less Instagram pictures and videos downloader.
GNU General Public License v3.0
2.01k stars 256 forks source link

Login fails with KeyError: 'graphql' #325

Open mgaller opened 3 years ago

mgaller commented 3 years ago

Library version

instalooter 2.4.4

Environment

Error description - runtime

Code dies with exception:

  File "C:\code\instagram\venv\lib\site-packages\instalooter\pages.py", line 180, in from_username
    data = user_data['entry_data']['ProfilePage'][0]['graphql']['user']
KeyError: 'graphql'
  'entry_data': {
    'ProfilePage': [
      {}
    ]
  },

entry_data seems empty, the account is working, i can log in normally in the browser.

Reproducible test case

instalooter user audi_de test1/ -u NAME -p PASSWORD

Expected behaviour

Instalooter should log in and start crawling the posts

Actual behaviour

Instalooter dies with KeyError

tonimichel commented 3 years ago

Same here. A Fix is highly appreciated.