You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I too stumbled into this problem.
Sadly it's not that easy to fix ( reasons are explained here - #377 (comment) ).
AFAIK there is some progress on this in the issue #85 and official patch will be released eventually, but if you need this working right now and content only getting text from hyperlinks (without address part), you can install package with this quick and dirty hack q210@336ed9f from my own fork (based on patch proposed by Brad-Python in #85 )
pip command is: pip install git+git://github.com/q210/python-docx.git@336ed9fed27ff0460b674d91ba1646ded9cecb59
P.S. I'll copy this answer to relevant SO questions and other similar issues just so people googling it in the future will spend less time understanding the problem than I did yesterday.
I suggest you can better select the piece of text and press ctrl+shift+F9
All hyper links will be removed and will display the plain text(Display text)
When extracting text from hyperlink in table cell, below either cell.text or paragraphs in cell
The text was updated successfully, but these errors were encountered: