Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why modules?
#3
It's strange that you were not able to extract all info. Just out of curiosity - it would be interesting if you can share the file. It's more likely to get repetitive info then not to get info in the table.
e.g.
from docx import Document

doc =  Document('some_doc.docx')
for table in doc.tables:
    for row in table rows:
        for cell in row.cells:
            print(cell.text)
            
is it some complex table or what?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Why modules? - by wavic - Oct-09-2019, 11:57 AM
RE: Why modules? - by ichabod801 - Oct-09-2019, 01:05 PM
RE: Why modules? - by buran - Oct-09-2019, 01:24 PM
RE: Why modules? - by wavic - Oct-09-2019, 01:34 PM
RE: Why modules? - by ichabod801 - Oct-09-2019, 03:30 PM
RE: Why modules? - by wavic - Oct-09-2019, 09:42 PM
RE: Why modules? - by buran - Oct-10-2019, 07:23 AM
RE: Why modules? - by wavic - Oct-10-2019, 11:46 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020