Print the items found.
(items)
| 21 | |
| 22 | |
| 23 | def print_items(items): |
| 24 | """Print the items found.""" |
| 25 | for i, item in enumerate(items): |
| 26 | |
| 27 | print(f"{i + 1:2}. {item.tag}:") |
| 28 | for field in item: |
| 29 | if field.text: |
| 30 | print(f" - {field.tag + ':':20} {field.text.strip()!r}") |
| 31 | |
| 32 | # print(root.xpath("count(.//bills/bill)"), 'bills') # lxml implements count() |
| 33 | |
| 34 | |
| 35 | def get_bill(client): |
no outgoing calls
no test coverage detected