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