This project automates website interaction on Prometric website, checks for available dates and alerts the user once seats are found.
Note
It checks for Pakistani centers by default. To add other centers see section "Adding centers for different country"
- download and install python https://www.python.org/downloads/
- install pip https://pip.pypa.io/en/stable/installation/
- open cmd or terminal and run:
pip3 install selenium webdriver-manager
- if that doesn't work on windows. try:
py -m pip install selenium webdriver-manager
-
extract zip file
-
open terminal in the
prometric-scheduler/
folder whereproscheduler.py
is located -
inside cmd/terminal run:
-
on Linux/MacOS:
python3 proscheduler.py
-
on Windows:
py proscheduler.py
-
running.script.on.Linux.mp4
-
When running the script for the first time, it will prompt you with a few relevant questions.
-
The provided values are then saved in the
user_input.txt
file. -
Subsequent runs of the script will automatically load values from the
user_input.txt
file.
Note
To update the stored values, simply delete the user_input.txt
file and rerun the script.
OR run script with "-e" argument
python3 proscheduler.py -e
- run script with "-c" argument to add other centers
python3 proscheduler.py -c
- this will create a
custom_centers.txt
file in same directory, and store centers
Screen.recording.2024-04-06.6.25.01.PM.1.webm
Tip
Do Not! change any file names in prometric-scheduler folder for scheduling to work properly.
Caution
Script will remove all previous cronjobs on Linux & MacOs.
- For Linux and MacOS users, the script utilizes crontab for scheduling automatic runs. Visit crontab.guru to configure the timing.
- once you have found your seats(hooray!!🎉🥳), to remove all cronjobs run
crontab -r
command in terminal.
- on Windows, script utilizes Windows Task Scheduler. after running the script, search task scheduler in start menu and see if the task is created.
- Delete Task once you have found your dates.
For any issues or questions, feel free to create an issue.
This project is licensed under the MIT License.