fix: Disable SSL verify when scraping sites for recipe data (#7356)

This commit is contained in:
Michael Genson
2026-03-28 20:13:23 -05:00
committed by GitHub
parent 626dee9500
commit 4f5d1cf1b4

View File

@@ -76,7 +76,10 @@ async def safe_scrape_html(url: str) -> str:
html_bytes = b""
response = None
transport = safehttp.AsyncSafeTransport(impersonate=impersonation)
transport = safehttp.AsyncSafeTransport(
impersonate=impersonation,
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 client.stream(
"GET",