Fun with Python: Today in History

@thecrazygm · 2025-08-16 11:41 · Synergy Builders

Hey everyone,

Happy Saturday! I haven't done a "Fun with Python" post in a little while, so I wanted to share a small, fun project I put together: a script that shows you what happened on this day in history, right in your terminal.


Fun with Python: Today in History

The idea was to create a simple script that fetches historical events for the current date and displays them in a clean, readable format. It's a fun little project that involves interacting with a web API, parsing JSON, and presenting data—all common and useful Python tasks.

The Script

The script uses the requests library to fetch data from the "On This Day" public API and the rich library to make the terminal output look great. As with all my tools, it's set up to be run easily with uv run, so you don't have to worry about managing a virtual environment manually.

It grabs the current date, then makes separate API calls to get the top five historical events, births, and deaths for that day.

The Result

After a few tweaks, the final output is a nicely formatted summary that's easy to read at a glance.

Today In History

It’s a simple but satisfying project, and a great example of how you can use Python to pull interesting information from the web and create your own custom command-line tools.

You can find the complete, updated script in the Gist below if you'd like to try it out yourself.

As always,
Michael Garcia a.k.a. TheCrazyGM

#dev #python #archon #tribes #pimp #proofofbrain #oneup
Payout: 8.323 HBD
Votes: 168
More interactions (upvote, reblog, reply) coming soon.