A hedonic thermometer for Spanish-language internet.
Every hour, RSS feeds from BBC Mundo, El País, and La Vanguardia are scanned. Words are matched against the AFINN-ES lexicon and averaged into a single score between 1 (negative) and 9 (positive).
Hosted on GitHub Pages: https://[your-username].github.io/hedos
- GitHub Actions runs
hedos.pyevery hour - The script fetches RSS feeds, scores each article, and saves
data.json index.htmlreadsdata.jsonand renders the dashboard
- Python + feedparser
- AFINN-ES lexicon (2,100+ Spanish words)
- GitHub Actions (free hourly automation)
- GitHub Pages (free hosting)
- Vanilla HTML/CSS/JS
- Small lexicon (2,100 words) — many articles go unscored
- No context awareness — "guerra" scores −2 regardless of meaning
- Sources are Spain/Latin America focused, not global
- Measures linguistic affect, not lived experience
pip install feedparser requests
curl -L "https://raw.githubusercontent.com/jboscomendoza/rpubs/master/sentimientos_afinn/lexico_afinn.en.es.csv" -o afinn_es.csv
python hedos.pyMIT