반응형
Notice
Recent Posts
Recent Comments
Link
목록스토리지 (1)
둘에서 하나로....
파이썬으로 네이버 object storage(s3)에 파일 2천개 업로드(파일명 변경후) 하는 방법
우선 boto3를 설치한다. pip install boto3 import boto3 from pathlib import Path import sys service_name = 's3' endpoint_url = 'https://kr.object.ncloudstorage.com' # aws에 업로드할경우 삭제 region_name = 'kr-standard' access_key = '엑세스키' secret_key = '시크릿키' if __name__ == "__main__": s3 = boto3.client(service_name, endpoint_url=endpoint_url, aws_access_key_id=access_key, aws_secret_access_key=secret_key) bucket_..
카테고리 없음
2023. 5. 23. 07:49