Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Official Spanish adverse-weather CAP warning Atom feed from AEMET for inspecting alert IDs, updates, and affected regions.
Report a ProblemFrom Source to Product Signal
AEMET publishes adverse-weather warnings through an Atom index with CAP details. Start with five current Atom entries, preserving IDs and update times. The legal notice requires source attribution and forbids distorting technical meaning; verify official area and validity before display.
Install the packages, then run the notebook cell.
python -m pip install requests
import xml.etree.ElementTree as ET
import requests
response = requests.get(
"https://www.aemet.es/documentos_d/eltiempo/prediccion/avisos/rss/"
"CAP_AFAE_ATOM.xml", timeout=30,
)
response.raise_for_status()
root = ET.fromstring(response.content)
atom = "{http://www.w3.org/2005/Atom}"
print(root.findtext(f"{atom}updated"))
for entry in root.findall(f"{atom}entry")[:5]:
print(entry.findtext(f"{atom}id"), entry.findtext(f"{atom}title"))Test a Useful Signal
Test the official warning index for a bounded Spanish alert card.
Agencia Estatal de Meteorología is a government source. Last verified 2026-09-28. Temporal coverage: current adverse-weather alerts.