mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-06-23 01:10:15 -04: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(
|
transport = safehttp.AsyncSafeTransport(
|
||||||
impersonate=impersonation,
|
impersonate=impersonation,
|
||||||
|
default_headers=True,
|
||||||
verify=False, # disable SSL verification since we can handle untrusted data and some sites don't have certs
|
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:
|
async with AsyncClient(transport=transport) as client:
|
||||||
|
|||||||
Reference in New Issue
Block a user