Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created August 12, 2018 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarsar/d43018d685217beca7141e5c9803e6fb to your computer and use it in GitHub Desktop.
Save omarsar/d43018d685217beca7141e5c9803e6fb to your computer and use it in GitHub Desktop.
def google_authenticate():
# Authenticate first so the Google Drive library can detect your credentials.
from google.colab import auth
auth.authenticate_user()
from googleapiclient.discovery import build
drive_service = build('drive', 'v3')
return drive_service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment