Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to get cookie cf_clearance and cfduid #454

Open
Polo6767 opened this issue Nov 23, 2022 · 0 comments
Open

Fails to get cookie cf_clearance and cfduid #454

Polo6767 opened this issue Nov 23, 2022 · 0 comments
Labels

Comments

@Polo6767
Copy link

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]

@Polo6767 Polo6767 added the bug label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant