This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |