Created
August 18, 2022 08:10
-
-
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.
This file contains 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
""" | |
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