I'm trying to connect python and google (created a key, enabled google sheets and google drive), gave an access to one of my google sheets.
import gspread
from df2gspread import df2gspread as d2g
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/spreadsheets']
my_mail='[email protected]'
credentials = ServiceAccountCredentials.from_json_keyfile_name('able-d392d507369d.json', scope)
gs = gspread.authorize(credentials)
It stopped at
'ServiceAccountCredentials.from_json_keyfile_name('able-d392d507369d.json', scope)'
With
FileNotFoundError: [Errno 2] No such file or directory: 'able-d392d507369d.json'
Please, if you know how to fix that, help me!