def get_products(date)
      pdate = parse_date(date)
      unless pdate.nil?
        year, month, day = pdate
        prefix = "products/#{year}/#{month}/#{day}/"
        folder = "#{year}_#{month}_#{day}"
        objects = []

        @s3_client.list_objects(bucket: S3_BUCKET, prefix: prefix).each do |response|
          response.contents.each do |object|
            product_str = object.key.split(prefix)
            product = product_str[1].split('/')
            if product[1] == 'productInfo.json'
              objects << object.key
            end
          end
        end

        return objects
      else
        return []
      end
    end
def get_products(date)
      pdate = parse_date(date)
      unless pdate.nil?
        year, month, day = pdate
        prefix = "products/#{year}/#{month}/#{day}/"
        folder = "#{year}_#{month}_#{day}"
        objects = []

        @s3_client.list_objects(bucket: S3_BUCKET, prefix: prefix).each do |response|
          response.contents.each do |object|
            product_str = object.key.split(prefix)
            product = product_str[1].split('/')
            if product[1] == 'productInfo.json'
              objects << object.key
            end
          end
        end

        return objects
      else
        return []
      end
    end
date format: "YYYY-MM-DD"