Hardy_M
New Contributor II

You can set up an SSL context that skips certificate verification with the following command:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

I have followed some steps from this source.