"""Copy the text of NOAA SWPC's three alerts behind the page's third claim out of alerts.json, which keeps only about a month, so the evidence stays readable. US government work. Any e-mail address or phone number would be removed (none was found). Reads the download as data. python3 -I swpc_alerts.py """ import hashlib import json import re import sys from pathlib import Path D, OUT = Path(sys.argv[1]), Path(sys.argv[2]) src = D / "swpc" / "alerts.json" data = src.read_bytes() alerts = json.loads(data) WANT = [("K05A", "2026-10-31 19:07"), ("K06A", "2026-10-31 19:14"), ("K05A", "2026-11-01 01:17")] EMAIL = re.compile(r"[\w.+-]+@[\w-]+\.[\w.-]+") PHONE = re.compile(r"(?