Automating pydrive verification process

First, you’re misunderstanding one very important bit of how this works: when I try to use the above script while I am logged into another account. It doesn’t upload the eng.txt into my gdrive that generated the secret_client.json but the account that was logged in when I authorize the authentication This is exactly how it’s … Read more

Python: download files from google drive using url

If by “drive’s url” you mean the shareable link of a file on Google Drive, then the following might help: import requests def download_file_from_google_drive(id, destination): URL = “https://docs.google.com/uc?export=download” session = requests.Session() response = session.get(URL, params = { ‘id’ : id }, stream = True) token = get_confirm_token(response) if token: params = { ‘id’ : id, … Read more