Created
December 22, 2022 19:51
-
-
Save st3fan/bfd78d413955b179b0582a7af543f678 to your computer and use it in GitHub Desktop.
Cron job to check if the Ivory TestFlight Beta is available
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
#!/usr/bin/env python3 | |
import requests | |
if __name__ == "__main__": | |
r = requests.get("https://testflight.apple.com/join/2bauS53v") | |
r.raise_for_status() | |
if "This beta is full" not in r.text: | |
r = requests.post("https://api.pushover.net/1/messages.json", data={ | |
"token": "PUSHOVER_TOKEN_HERE", | |
"user": "PUSHOVER_USER_HERE", | |
"device": "iphone", | |
"title": "TestFlight Check for Ivory Beta", | |
"message": "The Ivory beta is now available", | |
"url": "https://testflight.apple.com/join/2bauS53v", | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment