本文介绍了谷歌云存储签名的URL块下载在python中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想执行以下功能:
service = get_service('storage', 'v1', auth)
data = BytesIO()
request = service.objects().get_media(bucket=bucket, object=filename)
media = MediaIoBaseDownload(data, request, chunksize=chunksize)
但是如果是存储桶和对象,则使用签名的URL.如何在python中分块下载签名的URL?
But with a signed URL instead if a bucket and object. How do I chunk download a signed url in python?
推荐答案
签名的URL只是常规下载,不需要特殊的云API,可以使用此处回答的urllib读取功能来下载:
Signed URLs are just regular downloads, no need for special cloud APIS, and can be downloaded using a urllib read function answered here:
这篇关于谷歌云存储签名的URL块下载在python中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!