I'm using this code to extract the text from a slide show using pptx, how do I generate an xml or json file containing the text for each slide?
local_pptxFileList = ["/content/drive/MyDrive/Slides/Backlog Management.pptx"]
for i in local_pptxFileList:
ppt = Presentation(i)
for slide in ppt.slides:
for shape in slide.shapes:
if shape.has_text_frame:
print(shape.text)