📅  最后修改于: 2022-03-11 14:46:36.286000             🧑  作者: Mango
import ssl
# creates an unverified certificate with ssl even without certificate
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context = _create_unverified_https_context
#upvote this if it helped you