i have a function like
def get_response(keyword):
ssl._create_default_https_context = ssl._create_unverified_context
query = urllib.parse.quote(keyword).replace('/', '%2F')
opener = urllib.request.build_opener(
urllib.request.ProxyHandler(
{
'http': 'http://lum-customer-c_a4a3b5b0-zone-content_scraping:cgfv9xdh0va6@zproxy.lum-superproxy.io:22225',
'https': 'http://lum-customer-c_a4a3b5b0-zone-content_scraping:cgfv9xdh0va6@zproxy.lum-superproxy.io:22225'
}
)
)
response = opener.open('https://www.google.com/search?q=' + query + '&lum_json=1')
return response
when i runing this by command line or python script its working fine but when i sheduling this by celery its showing urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)> i'm unable to understand please help me