Summary
Add a screenshot utility that captures visuals from URLs found in daily facts files. These screenshots serve as reference material for poster generation and future video compositions.
Motivation
- Add visual entropy to AI-generated posters
- Create time-capsule snapshots of referenced content
- Build foundation for remotion.dev video pipeline
Proposed Solution
Smart URL Handling
- GitHub URLs → Fetch OpenGraph preview images (fast, no browser)
- Twitter/X URLs → Fetch card images or skip
- Other URLs → Full Playwright screenshot (1920x1080)
New Script
scripts/posters/utils/screenshot.py
# From facts file
python scripts/posters/utils/screenshot.py --from-facts the-council/facts/2025-12-21.json
# Single URL
python scripts/posters/utils/screenshot.py https://example.com -o screenshot.png
# Batch from URL list
python scripts/posters/utils/screenshot.py -f urls.txt -o screenshots/
Output Structure
posters/screenshots/2025-12-21/
├── github-elizaos-eliza-pull-6215.png
├── github-elizaos-eliza-issues-6235.png
└── manifest.json
Implementation Phases
- Phase 1: Core screenshot utility with Playwright
- Phase 2: Facts file URL extraction
- Phase 3: Integration with illustrate.py batch mode
Dependencies
Future
- Screenshot sheet montage (like icon_sheet.py)
- Remotion.dev video compositions
🤖 Generated with Claude Code
Summary
Add a screenshot utility that captures visuals from URLs found in daily facts files. These screenshots serve as reference material for poster generation and future video compositions.
Motivation
Proposed Solution
Smart URL Handling
New Script
scripts/posters/utils/screenshot.pyOutput Structure
Implementation Phases
Dependencies
playwright>=1.40.0Future
🤖 Generated with Claude Code