Guest User

Untitled

a guest
Jun 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import gspread
  2. from oauth2client.service_account import ServiceAccountCredentials
  3.  
  4. scope = ['https://spreadsheets.google.com/feeds',
  5. 'https://www.googleapis.com/auth/drive']
  6.  
  7. credentials =
  8. ServiceAccountCredentials.from_json_keyfile_name('sheetjson.json', scope)
  9.  
  10. gc = gspread.authorize(credentials)
  11.  
  12. wks = gc.open('mcresolve').sheet1
Add Comment
Please, Sign In to add comment