dh key too small解决方案

DH_KEY_TOO_SMALL 解决办法

import requests

try:
    requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL'
except AttributeError:  
    pass

page = requests.get(url, verify=False)