Guest User

Untitled

a guest
Nov 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. for run in runs: # however you decide to get the runs
  2. r = run._element # this is the `<w:r>` XML element for the run
  3. pics = r.xpath('.//w:drawing/wp:inline/a:graphic/a:graphicData/pic:pic')
  4. if not pics:
  5. break
  6. print(r.xml) # if you want to see the XML for this run
Add Comment
Please, Sign In to add comment