tuxity / insta-unfollower

An Instagram script to unfollow accounts who doesn't follow-you-back
MIT License
384 stars 87 forks source link

KeyError: "name='csrftoken', domain=None, path=None" Error #70

Closed slinkyone closed 2 years ago

slinkyone commented 2 years ago

Traceback (most recent call last):

File "/usr/src/insta-unfollower/insta-unfollower.py", line 282, in

main()

File "/usr/src/insta-unfollower/insta-unfollower.py", line 273, in main

while unfollow(user) == False:

File "/usr/src/insta-unfollower/insta-unfollower.py", line 182, in unfollow

'x-csrftoken': response.cookies['csrftoken']

File "/usr/local/lib/python3.10/site-packages/requests/cookies.py", line 334, in getitem

return self._find_no_duplicates(name)

File "/usr/local/lib/python3.10/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"

HunterFuzzo commented 2 years ago

same problem

satish-mm commented 2 years ago

Thanks @ tannerkrewson. Your fix is working fine.