Git Product home page Git Product logo

Comments (1)

tulssinep avatar tulssinep commented on June 12, 2024

I may add that resp_json looks like everything should be ok: {'user': True, 'userId': '123', 'authenticated': True, 'oneTapPrompt': True, 'reactivated': True, 'status': 'ok'}

Here is the log output from running it directly in the git repository:

$ python3 instaloader.py --login=ab profile abc
Session file does not exist yet - Logging in.
Enter Instagram password for ab: 
{'user': True, 'userId': '123', 'authenticated': True, 'oneTapPrompt': True, 'reactivated': True, 'status': 'ok'}
Traceback (most recent call last):
  File "/Users/pp/instaloader/instaloader.py", line 6, in <module>
    main()
  File "/Users/pp/instaloader/instaloader/__main__.py", line 541, in main
    _main(loader,
  File "/Users/pp/instaloader/instaloader/__main__.py", line 184, in _main
    instaloader.interactive_login(username)
  File "/Users/pp/instaloader/instaloader/instaloader.py", line 1595, in interactive_login
    self.login(username, password)
  File "/Users/pp/instaloader/instaloader/instaloader.py", line 651, in login
    self.context.login(user, passwd)
  File "/Users/pp/instaloader/instaloader/instaloadercontext.py", line 320, in login
    session.headers.update({'X-CSRFToken': login.cookies['csrftoken']})
                                           ~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/cookies.py", line 334, in __getitem__
    return self._find_no_duplicates(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/cookies.py", line 413, in _find_no_duplicates
    raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
KeyError: "name='csrftoken', domain=None, path=None"

from instaloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.