Skip to content

Instantly share code, notes, and snippets.

View brienna's full-sized avatar
🤸

Brienna Herold brienna

🤸
View GitHub Profile
@brienna
brienna / 10.08.2018.2.py
Created October 9, 2018 01:56
Check arXiv metadata
import boto3, configparser, os, botocore
def download_file(key):
"""
Downloads given filename from source bucket to destination directory.
Parameters
----------
key : str
Name of file to download
@brienna
brienna / 10.08.2018.1.py
Created October 9, 2018 01:55
Create S3 resource and set configs
import boto3, configparser
s3resource = None
def setup():
"""Creates S3 resource & sets configs to enable download."""
print('Connecting to Amazon S3...')
# Securely import configs from private config file