Skip to content

A tool for monitoring the availability of reserving the latest iPhone models in UAE (Dubai) and Germany.

Notifications You must be signed in to change notification settings

phen0menon/apple-dubai-reserve-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apple Store Reservation Checker (UAE)

Real-time monitoring tool that tracks and alerts you about reservation availability at Apple Stores, ensuring you never miss out on the latest products.

How to install

Prerequisites

Python >= 3.8. You can download Python here: https://www.python.org/downloads/

Running application

  1. Open project directory and open terminal in this directory.
  2. Run the command to create venv:
    python -m venv .venv
    
  3. Activate the venv (MacOS / Linux):
    source .venv/bin/activate
    
  4. Install project dependencies:
    pip install -r requirements.txt
    
  5. IMPORTANT: make sure you configured your .env (read section below) according to your prefs.
  6. Run the application:
    python main.py
    

Configuring .env file

  1. Copy .env.example file contents
  2. 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_BOT
    • COUNTRY: either dubai or deutschland
  3. 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.

Automation

You can use crontab to automate this script to run in background.

  1. Create a script .sh:
     #!/bin/bash
     cd /path/to/application
     source .venv/bin/activate
     python3 main.py
  2. Make this script executable:
    chmod +x test-script.sh
    
  3. Run crontab -e and enter the following (to enter the insert mode - press I):
    */5 * * * * /path/to/apple-checker.sh >> /path/to/logs/apple-checker.log
    
  4. To exit vi, press Escape, then press :x and enter.
  5. Run crontab -l to check if it worked

About

A tool for monitoring the availability of reserving the latest iPhone models in UAE (Dubai) and Germany.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages