Closed slinkyone closed 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"
same problem
Thanks @ tannerkrewson. Your fix is working fine.
Traceback (most recent call last):
File "/usr/src/insta-unfollower/insta-unfollower.py", line 282, in
File "/usr/src/insta-unfollower/insta-unfollower.py", line 273, in main
File "/usr/src/insta-unfollower/insta-unfollower.py", line 182, in unfollow
File "/usr/local/lib/python3.10/site-packages/requests/cookies.py", line 334, in getitem
File "/usr/local/lib/python3.10/site-packages/requests/cookies.py", line 413, in _find_no_duplicates
KeyError: "name='csrftoken', domain=None, path=None"