Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

egor-lopatin/appointment-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appointment checker

The only purpose of this project is to check the availability of appointments for the Spanish National Police. It is not intended to be used for any other purpose.

The solution is based on the Selenium library, which is used to walk through the pages and fill required forms. GitHub Actions are used to run the script with a schedule.

Prep-work

Environment variables are required to run the project. You can create a .env file in the root of the project with the following content:

export SITE_URL="https://POLICE_WEB_SITE/"
export PROVINCE="PROVINCE_NAME"
export OPTION_VALUE="SPECIAL_VALUE_OF_POLICE_DOCUMENT"
export USER_ID="NIE_id"
export USER_NAME="YOUR_NAME"
export TEXT_TO_PARSE="TEXT THAT INDICATES THAT THERE ARE NO APPOINTMENTS AVAILABLE"

Usage:

Install dependencies:

make install

Activate the virtual environment:

pipenv shell

Run the script:

python main.py

About

Spanish National Police appointment checker

Resources

Stars

Watchers

Forks