psf / requests

A simple, yet elegant, HTTP library.
https://requests.readthedocs.io/en/latest/
Apache License 2.0
52.16k stars 9.33k forks source link

KeyError with Instabot on python 2.7.15 for mac #4658

Closed hamadberlin closed 6 years ago

hamadberlin commented 6 years ago

hey guys,

i'm really trying to fix that problem and did research on internet but im not able to finde the selution.

can someone help me? please freshman

MacBook-Air:instabot.py-master2 XXX$ python example.py 23.05.2018_16:30 Instabot v1.2.0 started at 23.05.2018 16:30:

23.05.2018_16:30 Trying to login as XXXX...

Traceback (most recent call last): File "example.py", line 52, in unfollow_whitelist=['example_user_1', 'example_user_2']) File "/Users/XXX/Desktop/instabot.py-master2/src/instabot.py", line 232, in init self.login() File "/Users/XXX/Desktop/instabot.py-master2/src/instabot.py", line 283, in login self.s.headers.update({'X-CSRFToken': r.cookies['csrftoken']}) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/cookies.py", line 329, in getitem return self._find_no_duplicates(name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/cookies.py", line 400, in _find_no_duplicates raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) KeyError: "name='csrftoken', domain=None, path=None"

hamadberlin commented 6 years ago

solution here: https://github.com/instabot-py/instabot.py/issues/1287

CLOSED