I have the s3 bucket which will have the data in files with name as the date. I was able to fetch the data on a single day by giving the date as an input for prefix value since the data will be in that file. input: 2022/10/15
import boto3
s3 = boto3.client('s3', access_key, secret_key)
response = s3.list_objects(Bucket= bucket,Prefix = input )
print(response)
But i want to fetch the data with date range. How can i change this code works for that scenario. for example if i give the input date as 2022/10/01 , i want to fetch the data from 2022/10/01 to today. how can i iterate over the dates and fetch the data for all files under 2022/10/01, 2022/10/02 .... to today.