Weekly AI Digest Generator — DataGate.ch
:root {–bg:#0a0a0f;–surface:#12121a;–surface2:#1a1a28;–border:#2a2a3a;–text:#e4e4ef;–dim:#8888a0;–accent:#6366f1;–accent2:#818cf8;–radius:12px;}
* {margin:0;padding:0;box-sizing:border-box;}
body {font-family:-apple-system,BlinkMacSystemFont,’Segoe UI‘,system-ui,sans-serif;background:var(–bg);color:var(–text);line-height:1.7;-webkit-font-smoothing:antialiased;}
a {color:var(–accent2);text-decoration:none;}
.container {max-width:800px;margin:0 auto;padding:2rem 1.5rem;}
h1 {font-size:1.6rem;font-weight:800;margin-bottom:0.5rem;}
h2 {font-size:1.2rem;font-weight:700;margin:1.5rem 0 0.75rem;border-bottom:1px solid var(–border);padding-bottom:0.4rem;}
p {margin-bottom:1rem;color:var(–dim);}
.features {display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0;}
.feature {background:var(–surface);border:1px solid var(–border);border-radius:var(–radius);padding:1rem;}
.feature h3 {font-size:0.95rem;margin-bottom:0.35rem;}
.feature p {font-size:0.82rem;margin:0;}
.code-block {background:var(–surface2);border:1px solid var(–border);border-radius:var(–radius);padding:1rem;overflow-x:auto;font-family:’SF Mono‘,Consolas,monospace;font-size:0.82rem;line-height:1.5;color:var(–accent2);margin:1rem 0;}
🤖 Weekly AI Digest Generator v2
Reviewed: June 4, 2026
An automated content curation system that scrapes AI news from multiple sources and generates a formatted weekly digest ready for publication.
How It Works
The script fetches data from two primary sources and compiles them into a clean, mobile-responsive HTML digest:
📰 Hacker News
Scans the top 50 HN stories and filters for AI-related content based on title keywords. Ranks by community score.
📄 arXiv API
Fetches the 10 most recent papers from cs.AI, cs.LG, and cs.CL categories. Includes title, abstract, and link.
Usage
python3 weekly_digest_v2.py
Output: /tmp/weekly_digest_v2.html — ready to publish via the dg/v1/publish endpoint.
Files
/tmp/weekly_digest_v2.py — Main script
/tmp/weekly_digest_v2.html — Generated digest HTML
/tmp/digest_meta.json — Raw data (stories + papers)
Version History
- v2 (May 2026) — Top 50 HN scan (was top 20), added arXiv integration, dark theme HTML template
- v1 (Earlier) — Basic HN-only digest
📚 Related Posts
- DataGate AI Content Intelligence Dashboard — DataGate AI Content Intelligence Dashboard *{box-sizing:border-box;margin:0;padding:0} :root{--bg:#0f172a;--card:#1e293b;--accent:#3b82f6;--accent2:#8b5cf6;--green:#10b981;--yellow:#f59e0b;--red:#ef4444;--text:#e2e8f0;--muted:#94a3b8} body{font-family:'Segoe UI',system-ui,sans-serif;background:var(--bg);color:var(--text);padding:16px;line-height:1.6} .header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px} .header h1{font-size:1.5rem;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;-webkit-text-fill-color:transparent} .header .badge{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:600}…
- Topic Trend Tracker — Topic Trend Tracker *{box-sizing:border-box;margin:0;padding:0} :root{--bg:#0f172a;--card:#1e293b;--accent:#3b82f6;--accent2:#8b5cf6;--green:#10b981;--yellow:#f59e0b;--red:#ef4444;--text:#e2e8f0;--muted:#94a3b8} body{font-family:'Segoe UI',system-ui,sans-serif;background:var(--bg);color:var(--text);padding:20px;line-height:1.6} .wrap{max-width:1100px;margin:0 auto} h1{font-size:1.6rem;margin:4px 0 16px;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;-webkit-text-fill-color:transparent} .sub{color:var(--muted);margin-bottom:20px;font-size:.9rem} .grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}…
- Audience Segmentation Explorer — Audience Segmentation Explorer *{box-sizing:border-box;margin:0;padding:0} :root{--bg:#0f172a;--card:#1e293b;--accent:#3b82f6;--accent2:#8b5cf6;--green:#10b981;--yellow:#f59e0b;--red:#ef4444;--text:#e2e8f0;--muted:#94a3b8} body{font-family:'Segoe UI',system-ui,sans-serif;background:var(--bg);color:var(--text);padding:20px;line-height:1.6} .wrap{max-width:1100px;margin:0 auto} h1{font-size:1.6rem;margin:4px 0 16px;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;-webkit-text-fill-color:transparent} .sub{color:var(--muted);margin-bottom:20px;font-size:.9rem} .grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}…
- AI Content Performance Analyzer — AI Content Performance Analyzer *{box-sizing:border-box;margin:0;padding:0} :root{--bg:#0f172a;--card:#1e293b;--accent:#3b82f6;--accent2:#8b5cf6;--green:#10b981;--yellow:#f59e0b;--red:#ef4444;--text:#e2e8f0;--muted:#94a3b8} body{font-family:'Segoe UI',system-ui,sans-serif;background:var(--bg);color:var(--text);padding:20px;line-height:1.6} .wrap{max-width:1100px;margin:0 auto} h1{font-size:1.6rem;margin:4px 0 16px;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;-webkit-text-fill-color:transparent} .sub{color:var(--muted);margin-bottom:20px;font-size:.9rem} .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:20px}…
- Wave 151 Hub: AI Agent Engineering — 🌊 Wave 151: AI Agent Engineering The definitive guide to building production-grade AI agents —…