title: Read From PowerPoint Table in Python?
body: <p>I am using the python pptx module to automatically update values in a powerpoint file.  I am able to extract all the text in the file using the code below:</p>
  
  <pre><code>from pptx import Presentation
  prs = Presentation(path_to_presentation)
  # text_runs will be populated with a list of strings,
  # one for each text run in presentation
  text_runs = []
  for slide in prs.slides:
    for shape in slide.shapes:
      if not shape.has_text_frame:
        continue
    for paragraph in shape.text_frame.paragraphs:
      for run in paragraph.runs:
        text_runs.append(run.text)
  </code></pre>
  
  <p>This code will extract all the text in a file but fails to extract text that is in a ppt table and I would like to update some of these values. I have tried to implement some code from this question: <a href="https://stackoverflow.com/questions/24045996/reading-text-values-in-a-powerpoint-table-using-pptx">Reading text values in a PowerPoint table using pptx?</a> but could not. Any Ideas? Thanks.</p>