Created
February 12, 2021 21:17
-
-
Save jalbertbowden/ccf13fbf353c5383a08e5f81a0642dbd to your computer and use it in GitHub Desktop.
Scrape .docx with python-docx library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from docx import Document | |
document = Document('form_example.docx') | |
document.save('form_example.docx') | |
for table in document.tables: | |
for row in table.rows: | |
for cell in row.cells: | |
for para in cell.paragraphs: | |
print(para.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment