from pathlib import Path
p=Path('/opt/struktur/social-media-radar/intake/watch_intake.py')
s=p.read_text()
old=''' watch_entity_data={\n "external_id": "", # Facebook doesn't provide easy external ID without API\n "published_at": result.get("published", "")\n }\n'''
new=''' watch_entity_data={\n "external_id": "", # Facebook doesn't provide easy external ID without API\n # Search-index pubDate is not proof of the Facebook post publication time.\n # Leave it NULL unless a reliable public post timestamp is available.\n }\n'''
if old not in s:
raise SystemExit('target block not found')
p.write_text(s.replace(old,new,1))