1import ssl
2
3# creates an unverified certificate with ssl even without certificate
4try:
5 _create_unverified_https_context = ssl._create_unverified_context
6except AttributeError:
7 pass
8else:
9 ssl._create_default_https_context = _create_unverified_https_context
10
11#upvote this if it helped you