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
| // Set the desiredStoreIds, desiredPhoneModels, and alertEmail below. | |
| // Go to https://reserve.cdn-apple.com/CA/en_CA/reserve/iPhone/availability | |
| // Open browser console | |
| // Copy and paste everything in this file in to the console terminal and push Enter | |
| // Get alerted via email when the device you want is available to reserve! | |
| var desiredStoreIds = ['R280', 'R362', 'R460']; | |
| var desiredPhoneModels = ['MG3H2CL/A', 'MG3E2CL/A', 'MG3K2CL/A', 'MG3F2CL/A']; | |
| var alertEmail = '[email protected]'; |
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 requests | |
| import datetime | |
| import time | |
| url = "https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability.json" | |
| interested_stores = ['R245'] | |
| # Exclude iPhone 6 | |
| excluded = ['MGA92B/A', 'MGA92B/A', 'MGAJ2B/A', 'MGAE2B/A', 'MGAA2B/A', | |
| 'MGAK2B/A', 'MGAF2B/A', 'MGA82B/A', 'MGAH2B/A', 'MGAC2B/A'] |
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
| on run {input, parameters} | |
| activate application "Anki" | |
| tell application "System Events" | |
| keystroke 1 | |
| end tell | |
| return input | |
| end run |