Explanation
The errors is caused by an invalid or expired SSL Certificate
When making a GET request to a server such as www.tesco.com
you have 2 options, an http and an https, in the case of https the server will provide your requestor (your script) with an SSL certificate which allows you to verify that you are connecting to a legitimate website, also this helps secure and encrypt the data being transfered between your script and the server
Solution
Just disable the SSL check
url = 'https://www.tesco.com/'
requests.get(url, verify=False)
OR
Use Session and Disable the SSL Cert Check
import requests, os
url = 'https://www.tesco.com/'
# Use Session and Disable the SSL Cert Check
session = requests.Session()
session.verify = False
session.trust_env = False
session.get(url=url)
Similar post
Extra Info 1
Ensure the date and time is set correctly, as the request library checks the valid date range that the SSL certificate is valid in compared to your local date and time. as this is sometimes a common issue
Extra Info 2
You may need to get the latest updated Root CA Certificates installed on your machine Download Here
Secrity Notice
it is discouraged to use verify=false
as its a security risk. meaning that you browser or script can not verify that the data received from the website/url is actually from them (the site you are requesting)