Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login fails with KeyError: 'graphql' #325

Open
mgaller opened this issue Mar 18, 2021 · 1 comment
Open

Login fails with KeyError: 'graphql' #325

mgaller opened this issue Mar 18, 2021 · 1 comment

Comments

@mgaller
Copy link

mgaller commented Mar 18, 2021

Library version

instalooter 2.4.4

Environment

  • Windows 10 / Ubuntu
  • Python 3.8 / 3.9

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
Copy link

Same here. A Fix is highly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants