Fails to get cookie cf_clearance and cfduid
Polo6767 opened this issue · 0 comments
Python version 3.10.7
cfscrape version 2.1.1
Name: cfscrape
Version: 2.1.1
Summary: A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.
Home-page: https://github.com/Anorov/cloudflare-scrape
Author: Anorov
Author-email: anorov.vorona@gmail.com
License: UNKNOWN
Location: c:\users\pc\appdata\local\programs\python\python310\lib\site-packages
Requires: requests
Required-by:
Code snippet involved with the issue
import cfscrape
url = 'https://www.vinted.fr/mujer/ropa/vestidos/vestidos-formales/2449263747-vestido-mujer-sfera-l'
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36',
}
token, agent = cfscrape.get_tokens(url, headers=headers)
token2, agent2 = cfscrape.get_cookie_string(url, headers=headers)
print(token)
print(token2)
output
{'__cfduid': '', 'cf_clearance': ''}
__cfduid=; cf_clearance=
URL of the Cloudflare-protected page
[https://www.vinted.fr/mujer/ropa/vestidos/vestidos-formales/2449263747-vestido-mujer-sfera-l]
URL of Pastebin/Gist with HTML source of protected page
[LINK GOES HERE]