fix(scraper): send default_headers with curl_cffi impersonation (fixes 403 on WAF sites) (#7792)

This commit is contained in:
Ryan
2026-06-22 13:42:22 -04:00
committed by GitHub
parent 6c124a2dbd
commit aaab52326c
@@ -78,6 +78,7 @@ async def safe_scrape_html(url: str) -> str:
transport = safehttp.AsyncSafeTransport(
impersonate=impersonation,
default_headers=True,
verify=False, # disable SSL verification since we can handle untrusted data and some sites don't have certs
)
async with AsyncClient(transport=transport) as client: