** Problem **: I got the following error when scraping with Python.
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
During handling of the above exception, another exception occurred:
** Status **: * https * request with * UserAgent * in the header in module * urllib.request *.
** Problem **: An error that occurred when * SSL * was used as one of the encryption methods in * https * communication. SSL is an encryption method that allows you to confirm the identity of the company that operates the website by placing an electronic certificate called an "SSL server certificate" on the web server and verifying it when connecting. In addition, the SSL server certificate itself must pass the authentication work of the operator by the "certificate authority" that is authorized to issue, and conversely, if the SSL server certificate of the untrusted issuer is used, the Web browser A warning screen is displayed at. As a result, an SSL error like this one may be displayed.
** Solution **: Add the following.
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
Please note that it is not safe in terms of security.