from pathlib import Path
text=Path('pipeline_claim/index.html').read_text(encoding='utf-8')
needle="    const cards = Array.from(document.querySelectorAll('.doc-card'));\r\n"
idx=text.index(needle)
print(text[idx:idx+400].replace('\r\n','\\r\\n'))
