2020–2021 · with Andrew · my first real project
bareshelves
Restock alerts for masks, sanitizer and other essentials during the 2020 shortages.
Why
In 2020 the things everyone needed were sold out everywhere and came back in stock for minutes at a time. I wanted to know the moment they did.
How it worked
It started as AmznMonitor in the summer of 2020: a Python script that loaded Amazon’s offer pages for a product, parsed the sellers and prices, and posted to a Discord channel when it was back in stock. Amazon pushes back on bots, so a lot of the code is about looking like a normal browser and retrying when it hits a captcha.
That grew into a set of bots watching masks, sanitizer, cleaning products and household basics, sending a notification when anything came back.
BareShelves was a team effort with my friend Andrew. I spent most of my time on the monitor, we designed the website together, and past that it’s hard to say who did what. We built it together. These days the site is an archive of what it tracked.

Looking back
It was messy code (one file is literally called spaghetti.py), but it was the first thing I built that people relied on, and it’s where I learned scraping, scheduling and the fun of something actually being useful.
It’s also where I learned about secrets the hard way: 2020 me hardcoded the Discord webhook URL right at the top of the script and pushed it to a public repo, where it sat for years. It’s dead now, so no, you can’t use it to spam my old restock channel. These days every key lives in an environment variable and the repo gets checked before it goes public.
from dhooks import Webhook, Embed
hook = Webhook('https://discordapp.com/api/webhooks/██████████/██████████') # in plain text. in a public repo.