Skip to content

Instantly share code, notes, and snippets.

@amacal
Created November 10, 2020 16:52
Show Gist options
  • Save amacal/16a7affeb129363f639416847d3de197 to your computer and use it in GitHub Desktop.
Save amacal/16a7affeb129363f639416847d3de197 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.upload_fileobj(fp, 'la-labs-279215538049', filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment