G
G
god_dan632021-11-22 12:42:28
Python
god_dan63, 2021-11-22 12:42:28

How to pull hyperlink from table in doc file using python?

Hello!
You need to pull a hyperlink from a specific cell in a table in a doc file, I tried to display it like this:

import docx
from docx import Document
    wordDoc = Document('C:\Spraw11.docx')
    table = wordDoc.tables[0]
    cell = table.cell(2,5).text
print(cell)

Outputs an empty line, although this works perfectly with text.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question