Skip to content

Instantly share code, notes, and snippets.

@ksindi
Created March 30, 2016 12:19
Show Gist options
  • Save ksindi/1de197d48b5f4f1df389bdb333fd4f9b to your computer and use it in GitHub Desktop.
Save ksindi/1de197d48b5f4f1df389bdb333fd4f9b to your computer and use it in GitHub Desktop.
Get data from boto3
import json
import boto3
s3 = boto3.resource('s3')
obj = s3.Object(bucket, key)
data = obj.get()['Body'].read()
d = json.loads(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment