Automated daily backup: 2026-10-12 03:30
This commit is contained in:
1 parent
824cdedd7e
commit
2b31e92673
949 files changed
+381680
-1825
No files matched your search
@@ -26,7 +26,9 @@ async def get_cloudflare_cookies(scraper, url):
|
||||
try:
|
||||
await scraper.resolve_page(page, url)
|
||||
raw_cookies = await scraper.context.cookies()
|
||||
return {c["name"]: c["value"] for c in raw_cookies}
|
||||
# Filter out cf_clearance because curl_cffi's TLS fingerprint does not match
|
||||
# the Playwright instance that solved the challenge, causing Cloudflare 403s.
|
||||
return {c["name"]: c["value"] for c in raw_cookies if c["name"] != "cf_clearance"}
|
||||
finally:
|
||||
await page.close()
|
||||
|
||||
|
||||
Reference in new issue
Block a user