![]() ![]() ![]() Now the question remains, how to get the file_id? Simply split the url by id= to get the file_id. The above function downloads the file given the file_id to a specified downloads folder. Tracking_data_location = download_dir + 'test.json' Download a File Directly to Google Drive. Zipfile.ZipFile(download_dir + 'test.zip').extractall(UNZIP_DIR) Response = session.get(URL, params = )įile6.GetContentFile(download_dir+'mapmob.zip') If by "drive's url" you mean the shareable link of a file on Google Drive, then the following might help: import requestsĭef download_file_from_google_drive(id, destination):
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |