Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import gspread
- import datetime
- from oauth2client.service_account import ServiceAccountCredentials
- scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
- credentials = ServiceAccountCredentials.from_json_keyfile_name('/home/alexandr/Downloads/Tesst-2e1cefd1b150.json',
- scope)
- gc = gspread.authorize(credentials)
- k = str((datetime.datetime.now() + datetime.timedelta(days=1)).strftime("%d %B, %Y"))
- print(k)
- while True:
- wks = gc.open('Sane').sheet1
- print(wks.get_all_records())
- time.sleep(10800)
Advertisement
Add Comment
Please, Sign In to add comment