fix: Disable SSL verify when scraping sites for recipe data (#7356)
This commit is contained in:
1 parent
626dee9500
commit
4f5d1cf1b4
1 file changed
+4
-1
@@ -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