Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created August 1, 2021 12:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anna-geller/c9fcf9f5ebdb366ea1de9e4848a6841c to your computer and use it in GitHub Desktop.
Save anna-geller/c9fcf9f5ebdb366ea1de9e4848a6841c to your computer and use it in GitHub Desktop.
import boto3
s3_resource = boto3.resource("s3")
list(i for i in s3_resource.Bucket("annageller").objects.all()
if i.get()["ContentType"] == "text/csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment