s3 bucket objects filter top 10

Solutions on MaxInterview for s3 bucket objects filter top 10 by the best coders in the world

showing results for - "s3 bucket objects filter top 10"
Garance
11 Jun 2016
1import boto3
2client = boto3.client('s3')
3paginator = client.get_paginator('list_objects')
4for result in paginator.paginate(Bucket='edsu-test-bucket', Delimiter='/'):
5    for prefix in result.get('CommonPrefixes'):
6        print(prefix.get('Prefix'))