Coder Social home page Coder Social logo

hammadirshad / udi-application-appointment-check Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raphw/udi-application-appointment-check

0.0 1.0 3.0 178 KB

Project that checks for available UDI appointments via GitHub actions.

Shell 100.00%

udi-application-appointment-check's Introduction

udi-application-appointment-check

A simple selenium script for checking UDI police appointment availability for a family immigration and permanent residence permit application.

To run this script from GitHub, the GitHub action needs the properties udi_email and udi_password set as secrets in the cloned project. This can be done in the settings tab under secrets. This data is the same that is being used to login and not visible to the outside or in logs. Additionally, the check_limit property must be set to a combination of [month year] which is the latest date of interest. The month must be fully spelled out in English, e.g August 2021.

By default, the script is run between 5am and 11pm each half hour. This behavior can be configured by changing the cron expression in the .github/workflows/main.yaml file. The time zone on GitHub is UTC

You can test the script locally by running

./check-udi.side <email> <password> <limit>

The script returns status code 0 if the check did successfully run but not discover any new appointments or timeout. If it fails or discovers an available appointment, status code 1 is returned. A summary is printed in any case to make the log better readable. GitHub notifies the account holder on status code 1 such that the available appointment can be booked.

The git configuration is set to avoid any accidental checkins of passwords, user identity or desired date but take extra caution when committing to a cloned repository.

Best of luck on getting an appointment!

udi-application-appointment-check's People

Contributors

gdubya avatar hammadirshad avatar raphw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.