Yes :)
Here's some pseudocode to help:
Here's some pseudocode to help:
import shutil from openpyxl import load_workbook for file_prefix in ["a", "b"]: doc = load_workbook(filename= file_prefix + '.xlsx') sheet = doc['Sheet1'] from_path = './' to_path = '/images/' + file_prefix + '/' for row in sheet.rows: image_id = row['M'] + ".jpg" shutil.copyfile(from_path + image_id, to_path + image_id)