Skip to content

Instantly share code, notes, and snippets.

@ljmocic
Created December 5, 2020 13:39
Show Gist options
  • Save ljmocic/387b6779927d29ad772e378d2e33213c to your computer and use it in GitHub Desktop.
Save ljmocic/387b6779927d29ad772e378d2e33213c to your computer and use it in GitHub Desktop.
import json
import boto3
BUCKET = 'your-bucket-name'
KEY = 'your-file-key'
s3 = boto3.resource('s3')
file_object = s3.Object(BUCKET, KEY)
json_content = json.loads(file_object.get()['Body'].read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment