![](/img/trans.png)
[英]Python code to download list of csv files from Azure Blob Storage using SAS token
[英]Cannot download from Azure not public blob storage with Python SDK
尝试使用Azure Storage SDK for Python从Azure而不是公共Blob存储下载文件时,获取对象没有属性``读取''
blob_service = BlockBlobService(account_name = account_name, account_key = blob_key)
blob_service.get_blob_to_path(container_name,remote_file_name,local_file_name)
我生成了带有到期日期的SAS令牌,但是没有信息如何将其与BlockBlobService一起使用? 它对公共文件很好用。
您实际上可以使用以下语法:
bbs = BlockBlobService(account_name='<account_name>', sas_token='<sas_token>')
更多信息可以在这个仓库中找到
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.