Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why modules?
#4
(Oct-09-2019, 01:24 PM)buran Wrote: 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?

Not at all. There were two tables with two columns each. I've used the same approach as you did here.
I'm gonna ask if I can share the file regardless that it was shared with us in the other forum. Probably later this evening.

Quote:Perhaps you could write a tutorial on how you used xml and zipfile to get the information.
I could try. My English is not so good as I want but I think I can do it.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
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