Day 24 of the Anvil Advent Calendar

Build a web app every day until Christmas, with nothing but Python!

Making a list, checking it twice…

Does Santa really visit every child in the world in a single night? Tonight we find out - using data!

If you’ve seen Santa, you can use this app to submit his address. There’s a map showing all the sightings so you can check where else he’s been.

https://santa-sightings.anvil.app

You can submit either a street address, or if you’re off-grid, you can submit a latitude and longitude.

There are approximately one billion households in the world, so when our database gets to around one billion rows, we’ll know we’re close to an answer. At that stage, we’ll cross-reference the locations against OpenStreetMap to check whether he really did visit every house.

If we find only a few houses missing, we’ll be contacting you personally to check whether you’ve been naughty or nice.

Make sure you stay up to catch Santa and submit your sighting!

https://santa-sightings.anvil.app

Get the source code

Alternatively, you can clone the app and set up your own Santa tracking system. You could even modify it to track other things!


Give the Gift of Python

Share this post: