Disable SSL cert verification

This commit is contained in:
vas3k
2020-01-24 18:19:42 +01:00
parent 64acbb96a4
commit 207cfbbd7d
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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