I am reading data from a pptx file using python. I need to access the hyperlinks/urls present in it.
ppt2 = Presentation('../sample dataset/'+ file_name)
for slide in ppt2.slides:
for shape in slide.shapes:
click_action = shape.click_action
if click_action.action == PP_ACTION.HYPERLINK:
print(click_action.hyperlink.address)
I have tried this and it did not work. it did not show any output.
I need the urls present in the hyperlinks as output. But i did not get any output. sample of how the ppt slide looks like
The hyperlink with text 'sample text' has a URL. I need to access the url (please see the ppt slide image).