Schedule data but not footer and header

Hi,
I am writing a python script to collect all the cell data from a schedule.
However my script will collect everything. How can I skip the header or footer?

image
I don’t want the highlighted data.

Thx

Ok I think I found a solution…using GetCellType method… and remove if type == Text…

image