mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-06-23 02:20:16 +00:00
fix(scraper): send default_headers with curl_cffi impersonation (fixes 403 on WAF sites) (#7792)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user