(url)
return obj["Body"].read()
Given an S3 URL, downloads the object and returns the read body
Given an S3 URL, downloads the object and returns the read body
Given an S3 URL downloads the object and returns the read body
def get_body(url):
    """
    Given an S3 URL, downloads the object and returns the read body
    """
    bucket, key = split_url(url)

    obj = client().get_object(Bucket=bucket, Key=key)
    return obj["Body"].read()
def get_body ( url ) : bucket , key = split_url ( url ) obj = client ( ) . get_object ( Bucket = bucket , Key = key ) return obj [ "Body" ] . read ( )