showing results for - "download json file from s3"
Jannik
22 Feb 2016
1import boto3
2import json
3
4s3 = boto3.resource('s3')
5
6content_object = s3.Object('test', 'sample_json.txt')
7file_content = content_object.get()['Body'].read().decode('utf-8')
8json_content = json.loads(file_content)
9print(json_content['Details'])
10# >> Something