﻿
import boto3
from botocore.client import Config

ACCESS_KEY_ID = '...'
ACCESS_SECRET_KEY = '...'
BUCKET_NAME = '...'
FILE_NAME = '...';
# S3 bağlanılıyor
s3 = boto3.resource(
    's3',
    aws_access_key_id=ACCESS_KEY_ID,
    aws_secret_access_key=ACCESS_SECRET_KEY,
    config=Config(signature_version='s3v4')
)

# indirme
s3.Bucket(BUCKET_NAME).download_file(FILE_NAME, '...');
print ("basarili")
