This is my extended question for the question:
How to read contents of an Table in MS-Word file Using Python?
The solution provided by @YusuMishi is great, but
Accessing Headers and Footers is a bit tricky. Here is how to do it:
HeaderTable = doc.Sections(1).Headers(1).Range.Tables(1)
FooterTable = doc.Sections(1).Footers(1).Range.Tables(1)
You can get the table count this way:
HeaderTablesCount = doc.Sections(1).Headers(1).Range.Tables.Count
FooterTablesCount = doc.Sections(1).Footers(1).Range.Tables.Count
And get the text from cells this way:
HeaderTable.Cell(1,1).Range.Text
FooterTable.Cell(1,1).Range.Text