0
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive

gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)

above is a easy way to auth

but LocalWebserverAuth is not usable in the command-line environment ( no browser )

Is there any other way that I could auth in the command line?.......

the documentation only list one method

Luk Aron
  • 1,235
  • 11
  • 34

1 Answers1

0

Using commandline auth.

gauth.CommandLineAuth()

Luk Aron
  • 1,235
  • 11
  • 34