gorxyz / queen

π™±πš›πšžπšπšŽπšπš˜πš›πšŒπšŽ πšŠπšπšπšŠπšŒπš” 𝚝𝚘 πš’πš—πšœπšπšŠπšπš›πšŠπš– πšžπšœπšŽπš›πš—πšŠπš–πšŽ πš πš’πšπš‘ π™Ώπš’πšπš‘πš˜πš—
MIT License
13 stars 3 forks source link

csrf token issue #7

Open jhoanmartinez opened 1 year ago

jhoanmartinez commented 1 year ago

Hello fellas, when I ran the code, shows up this issue, its about csrf token

Try the 2 options: python3 queen.py --tor disbale and python3 queen.py --tor enable, shows the same issue

Traceback (most recent call last): File "/home/queen/queen.py", line 31, in csrf = cookie_request.cookies['csrftoken'] File "/home/queen/env3.10/lib/python3.10/site-packages/requests/cookies.py", line 334, in getitem return self._find_no_duplicates(name) File "/home/queen/env3.10/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"

Maybe request library change or instagram not returning csrftoken

Try to print the cookies:

cookie_request = requests.get(instagram_url) print(cookie_request.cookies.get_dict()) =====> output ===> {}

Am I missing something guys?

An0nymous2 commented 1 year ago

Yep, I'm experiencing the same problem. Screenshot 2023-06-02 145554