TzorAL / daily-random-xkcd

This repository automates the process of generating a daily random xkcd comic RSS feed. Using GitHub Actions, a new random xkcd comic is selected and added to the feed every day. The RSS feed is hosted on GitHub Pages and can be integrated with services like RSS.app to receive daily emails featuring the comic.
https://tzoral.github.io/daily-random-xkcd/
MIT License
1 stars 1 forks source link
404-page github-actions python rss-feed xkcd

🎲 Daily Random xkcd 🎲

πŸ“– About

This repository automatically generates a daily random xkcd comic and serves it as an RSS feed. Each day, a new comic is fetched, formatted, and made available for subscription. Users can configure RSS.app to send email notifications whenever a new comic is available in the feed. It also features a fun xkcd-themed 404 error page that showcases a random comic in a playful layout.


🌟 Features


βš™οΈ How It Works

  1. πŸ•” Daily Trigger: A GitHub Actions workflow is triggered every day at 8:00 AM UTC+3 to run a Python script (generate_rss.py).
  2. πŸ“₯ Random Comic Fetch: The script fetches a random comic from the xkcd API, ensuring it hasn't been seen before.
  3. πŸ“ XML Generation: Comic details are formatted as XML and saved to docs/xkcd_feed.xml.
  4. πŸ—‚οΈ Seen Comics Tracking: The comics are tracked in seen_comics.json to avoid repeats.
  5. πŸš€ RSS Hosting: The RSS feed is hosted on GitHub for easy access by RSS.app.
  6. πŸ“§ Email Notifications: RSS.app monitors the feed and sends email alerts when a new comic is available.
  7. πŸ’‘ 404 Page: A Python script generates an xkcd-themed 404 page with a random comic.

πŸ”— Links


πŸ› οΈ Setup Instructions

Note: Make sure to fork and enable GitHub Actions to automate daily comic fetching.

  1. Fork this repository to your GitHub account.
  2. Enable GitHub Actions in your forked repository.
  3. Set up RSS.app:
    • Create a new RSS feed alert for the URL
    • Configure the email notifications based on your preferences.
  4. Enjoy daily xkcd emails and check the latest comic each day!
  5. Access the 404 Page

πŸ“‚ Files


πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for more details.


πŸ™ Acknowledgements


πŸ“¬ Contact

If you have any questions or suggestions, feel free to open an issue in this repository!