Skip to content

Instantly share code, notes, and snippets.

@guyzyl
Created August 18, 2022 08:10
Show Gist options
  • Save guyzyl/f5ecbdb1f440cc6d440b2da178ecb599 to your computer and use it in GitHub Desktop.
Save guyzyl/f5ecbdb1f440cc6d440b2da178ecb599 to your computer and use it in GitHub Desktop.
A short Python code snippet that notifies you once a slot opens up on the WhatsApp mac beta.
"""
A short Python code snippet that notifies you once a slot opens up
on the WhatsApp mac beta.
Make sure to install the TestFlight app beforehand, so you don't miss
you chance when a slot opens up.
"""
import os
from datetime import datetime
from time import sleep
import requests
url = "https://testflight.apple.com/join/krUFQpyJ"
beta_message = "This beta is full."
say_message = "There's a new slot available for the WhatsApp beta!"
check_frequency = 2 # In seconds
def check_beta():
response = requests.get(url)
if beta_message in response.text:
return False
os.system(f'say "{say_message}"')
return True
while True:
print(f"Checking beta status - {datetime.now()}")
if check_beta():
break
sleep(check_frequency)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment