I am using gspread to access google spreadsheet but it is showing SSLError.
Similar thing is happening when I am using requests library.
import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds',
'https://www.googleapis.com/auth/drive']
credentials = ServiceAccountCredentials.from_json_keyfile_name('credentials.json', scope)
gc = gspread.authorize(credentials)`
The error is :
SSLCertVerificationError Traceback (most recent call last)
<ipython-input-1-87ec55398e31> in <module>
7 credentials = ServiceAccountCredentials.from_json_keyfile_name('credentials.json', scope)
8
----> 9 gc = gspread.authorize(credentials)
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051)