错误显示
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.construdip.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)')))
import requests
url = 'https://www.construdip.com/'
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.70"}
resp = requests.get(url,headers=headers,verify=False)
print(resp.text)