How big is the list? You can sort the list by the "last_modified" attr key
orderedList = sorted(bucketList, key=lambda k: k.last_modified) keysYouWant = orderedList[0:100]
If your list is HUGE, this may be ineffective. Check the inline documents for the list () function in the boto.s3.bucket.Bucket file.
source share