Skip to content

Instantly share code, notes, and snippets.

View veryhappythings's full-sized avatar
👋
Hello!

Mac Chapman veryhappythings

👋
Hello!
View GitHub Profile
@benjeffery
benjeffery / covid_testing_alarm.py
Last active January 28, 2021 12:28
UK Covid testing alarm
import datetime
import time
import requests
import playsound #You might need to install pygobject if you get an error about missing "gi" module for this.
playsound.playsound("ding.mp3") #You'll need a file here that is noisy
while True:
try:
r = requests.post(
"https://ads-prd-gov-1-sp.test-for-coronavirus.service.gov.uk/testcentres/availabilityquery",