mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-08 22:15: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""
|
html_bytes = b""
|
||||||
response = None
|
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 AsyncClient(transport=transport) as client:
|
||||||
async with client.stream(
|
async with client.stream(
|
||||||
"GET",
|
"GET",
|
||||||
|
|||||||
Reference in New Issue
Block a user