简体   繁体   中英

How to get downloadurl of an image in google drive using python?

I need to get downloadurl of an image that is in google drive. I have seen the post Downloading Images from Google Drive but could not be clear. Any help would be greatly appreciated.

Try:

file = service.files().get(fileId=file_id, fields='downloadUrl').execute()
print file['downloadUrl']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM