mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-05 20:45:34 -04:00
fix: Disable SSL verify when scraping sites for recipe data (#7356)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user