pydrive

Getting 'Invalid query' error when doing name='test' to Google Drive API

Getting 'Invalid query' error when doing name='test' to Google Drive API Question: I am using PyDrive to fetch list of file names from a Google Drive folder from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive GoogleAuth.DEFAULT_SETTINGS[‘client_config_file’] = r"client_secrets.json" gauth = GoogleAuth(settings_file=’settings.yaml’) drive = GoogleDrive(gauth) folder_id = "folder-id" file_list = drive.ListFile( { ‘q’: "name = ‘test’", …

Total answers: 1

Google spreadsheet to Pandas dataframe via Pydrive without download

Google spreadsheet to Pandas dataframe via Pydrive without download Question: How do I read the content of a Google spreadsheet into a Pandas dataframe without downloading the file? I think gspread or df2gspread may be good shots, but I’ve been working with pydrive so far and got close to the solution. With Pydrive I managed …

Total answers: 2

Google Drive Python API without Creating Project

Google Drive Python API without Creating Project Question: For the Google Drive Python API, in all the tutorials I have seen, they require users to create a project in their Google Dashboard, before obtaining a client ID and a client secret json file. I’ve been researching both the default Google Drive API and the pydrive …

Total answers: 2

List of file in a folder/ DRIVE API PyDRIVE

List of file in a folder/ DRIVE API PyDRIVE Question: I can’t change folder and view what’s inside. drive = GoogleDrive(gauth) file_list = drive.ListFile({‘q’: “‘root’ in parents and trashed=false”}).GetList() for file1 in file_list: print(“File %snn”,(file1)) I used the following code: file_list = drive.ListFile({‘q’: “‘/test1′ in parents and trashed=false”}).GetList() but it doesn’t work. There’s the documentation …

Total answers: 4

Python: download files from google drive using url

Python: download files from google drive using url Question: I am trying to download files from google drive and all I have is the drive’s URL. I have read about google API that talks about some drive_service and MedioIO, which also requires some credentials( mainly JSON file/OAuth). But I am unable to get any idea …

Total answers: 12

Automating pydrive verification process

Automating pydrive verification process Question: I am trying to automate the GoogleAuth process when using the pydrive library (https://pypi.python.org/pypi/PyDrive). I’ve set up the pydrive and the google API such that my secret_client.json works but it requires web authentication for gdrive access every time i run my script: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive …

Total answers: 5