An idempotent Wordle solutions fetcher that automatically collects and maintains a comprehensive archive of New York Times Wordle solutions.
- Automated daily fetching: Runs at 2 AM UTC via GitHub Actions
- Idempotent operation: Safely skip already-fetched solutions
- Gap detection: Identifies and reports missing dates
- Manual date fetching: Fetch solutions for any specific date on demand
- Sorted maintenance: Automatically maintains chronological order
The workflow runs automatically every day at 2 AM UTC. No action needed.
Run the workflow manually from the Actions tab:
- Without date: Checks for missing solutions and fetches yesterday's
- With date: Fetches the solution for the specified date (YYYY-MM-DD format)
# Default mode: check for gaps and fetch yesterday's solution
python3 fetch.py
# Fetch solution for a specific date
python3 fetch.py 2025-01-15Solutions are stored in solutions.txt with one solution per line in the format:
YYYY-MM-DD WORD
Example:
2021-06-19 CIGAR
2021-06-20 REBUT
2021-06-21 SISSY
- Read existing solutions: Loads all previously fetched solutions from
solutions.txt - Validate and repair: Checks for sort order, automatically fixes if needed
- Detect gaps: Identifies missing dates up to the day before yesterday
- Fetch from NYT: Queries the New York Times Wordle API for missing solutions
- Maintain order: Saves all solutions in chronological order
- The script only fetches solutions up to the day before yesterday (solutions are publicly available the day after)
- All dates use UTC for consistency
- Solutions are fetched from the official New York Times Wordle API