Disable SSL cert verification
This commit is contained in:
@@ -171,7 +171,8 @@ def load_page_html(url):
|
||||
url=url,
|
||||
headers=DEFAULT_REQUEST_HEADERS,
|
||||
allow_redirects=True,
|
||||
timeout=30
|
||||
timeout=30,
|
||||
verify=False
|
||||
).text
|
||||
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ def resolve_url(entry):
|
||||
depth -= 1
|
||||
|
||||
try:
|
||||
response = requests.head(url, timeout=REQUEST_TIMEOUT)
|
||||
response = requests.head(url, timeout=REQUEST_TIMEOUT, verify=False)
|
||||
except RequestException:
|
||||
log.warning(f"Failed to resolve URL: {entry.link}")
|
||||
return None, content_type, content_length
|
||||
|
||||
Reference in New Issue
Block a user