Tags

Python

Notifications

Web-Scraping

Life Hack

Mini Project

Barbers Open Yet?

A tool I built to ensure I could secure a haircut on the first day the barbers opened after lockdown.

Python

Notifications

Web-Scraping

Life Hack

Mini Project

21 Jun 2020 - 25 Jun 2020

Possibly my favourite personal project that I have worked on so far, due to the sheer cheek of it... And it actually provided a real benefit to my life, which is a first for any of my projects! (Twice now hahaaa)

Towards the end of the first UK national lockdown that took place March-July 2020, my hair reached a state that I did not think I would ever see again (I have had some shameful hair 'phases' in my life). Although it had almost become a new normal to see people enter video chats with their hair shaved off, I knew I was not alone in waiting for the day the barbers opened back up.

This otherworldly demand inspired me to take actions into my own hands. I did not have the time to constantly refresh the booking website every few hours, and nobody knew how many people were waiting for the official announcement through social media. So I decided I'd beat the crowd by creating a bot that visits the website for me and sends out a text to me and my friends once it detected that bookings are available.

(click image to enlarge)

Trim-bot has it covered

The application ran silently on a Raspberry Pi 24 hours a day for a number of days, polling the booking website every 15 minutes (less often at night to avoid being too much of a nuisance). Once it detected that bookings were open, it sent a text to my phone, and all of my friends who wanted in. All we needed to do was make sure we didn't miss the text!