Skip to content

Fails to get cookie cf_clearance and cfduid  #454

@Polo6767

Description

@Polo6767

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: [email protected]
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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions