from pathlib import Path
text=Path('pipeline_claim/index.html').read_text(encoding='utf-8')
for part in text.split('<pre>'):
    if '$' in part:
        if 'Tom paid' in part or 'Receipt' in part:
            print(part[:200])
