Real-time monitoring tool that tracks and alerts you about reservation availability at Apple Stores, ensuring you never miss out on the latest products.
Python >= 3.8. You can download Python here: https://www.python.org/downloads/
- Open project directory and open terminal in this directory.
- Run the command to create venv:
python -m venv .venv
- Activate the venv (MacOS / Linux):
source .venv/bin/activate
- Install project dependencies:
pip install -r requirements.txt
- IMPORTANT: make sure you configured your
.env
(read section below) according to your prefs. - Run the application:
python main.py
- Copy
.env.example
file contents - Adjust the following variables:
TELEGRAM_BOT_ID
: You can use BotFather for creating a bot. Obtain created bot token. You can do that in the BotFather. The bot token usually have the following pattern:181283218:BBFRF3r-2Q4fSofzv-wDOFXKX6UIsd_GTtl
TELEGRAM_CHAT_ID
: An ID of Chat to push messages. You can use this bot to get the identifier: https://t.me/GetChatID_IL_BOTCOUNTRY
: eitherdubai
ordeutschland
- OPTIONAL: for Deutschland region, you need to enter postal code and specific part name. To get part name, go to apple store, inspect the page code, search for
window.PRODUCT_SELECTION_BOOTSTRAP
and find specific model part number.
You can use crontab to automate this script to run in background.
- Create a script .sh:
#!/bin/bash cd /path/to/application source .venv/bin/activate python3 main.py
- Make this script executable:
chmod +x test-script.sh
- Run
crontab -e
and enter the following (to enter the insert mode - pressI
):*/5 * * * * /path/to/apple-checker.sh >> /path/to/logs/apple-checker.log
- To exit vi, press Escape, then press
:x
and enter. - Run
crontab -l
to check if it worked