mirror of https://github.com/Bunsly/JobSpy
fix file not found
parent
f81da7ced4
commit
639f45a48a
|
@ -20,7 +20,7 @@ class CSVFormatter:
|
||||||
"https://www.googleapis.com/auth/drive",
|
"https://www.googleapis.com/auth/drive",
|
||||||
]
|
]
|
||||||
credentials = ServiceAccountCredentials.from_json_keyfile_name(
|
credentials = ServiceAccountCredentials.from_json_keyfile_name(
|
||||||
GSHEET_JSON_KEY_PATH, scope
|
"/app/client_secret.json", scope
|
||||||
)
|
)
|
||||||
gc = gspread.authorize(credentials)
|
gc = gspread.authorize(credentials)
|
||||||
sh = gc.open(GSHEET_NAME)
|
sh = gc.open(GSHEET_NAME)
|
||||||
|
|
|
@ -3,7 +3,6 @@ import os
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
# gsheets (template to copy at https://docs.google.com/spreadsheets/d/1mOgb-ZGZy_YIhnW9OCqIVvkFwiKFvhMBjNcbakW7BLo/edit?usp=sharing)
|
# gsheets (template to copy at https://docs.google.com/spreadsheets/d/1mOgb-ZGZy_YIhnW9OCqIVvkFwiKFvhMBjNcbakW7BLo/edit?usp=sharing)
|
||||||
GSHEET_JSON_KEY_PATH = "client_secret.json"
|
|
||||||
GSHEET_NAME = os.environ.get("GSHEET_NAME", "JobSpy")
|
GSHEET_NAME = os.environ.get("GSHEET_NAME", "JobSpy")
|
||||||
|
|
||||||
# optional autha
|
# optional autha
|
||||||
|
|
Loading…
Reference in New Issue