Created
March 30, 2016 12:19
-
-
Save ksindi/1de197d48b5f4f1df389bdb333fd4f9b to your computer and use it in GitHub Desktop.
Get data from boto3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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