📜  如何使用 python 代码示例从 s3 下载 excel 文件

📅  最后修改于: 2022-03-11 14:46:59.031000             🧑  作者: Mango

代码示例1
import boto3

BUCKET_NAME = 'Enter Your Bucket Name'
BUCKET_FILE_NAME = 'Enter File To be download'
LOCAL_FILE_NAME = 'Local File Name'

def download_s3_file():
    s3 = boto3.client('s3')
    s3.download_file(BUCKET_NAME, BUCKET_FILE_NAME, LOCAL_FILE_NAME)