Skip to content

Instantly share code, notes, and snippets.

@amacal
Created November 10, 2020 16:47
Show Gist options
  • Save amacal/8bcedea2a9901e5ae85871907d8a6e0b to your computer and use it in GitHub Desktop.
Save amacal/8bcedea2a9901e5ae85871907d8a6e0b to your computer and use it in GitHub Desktop.
import boto3
filename = 'enwiki-20201020-langlinks.sql.gz'
s3client = boto3.client('s3')
with open(filename, 'rb') as fp:
s3client.put_object(Bucket='la-labs-279215538049', Key=filename, Body=fp.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment