I want to list only the objects in a bucket that aren\'t buckets themselves. Is there a way of doing this short of parsing out the results of ListBucket?
There is a better approach using the latest boto3 version (1.14 as of now) and list_objects_v2 method.
boto3
import boto3 s3_client = boto3.client('s3') response = s3_client.list_objects_v2(Bucket=bucket_name, Prefix=your_prefix) print(response)