/passaporte

Automation bot created w/ Puppeteer to get an appointment in PT TLV embassy.

Primary LanguageJavaScript

Passaporte!

Automation bot for attempting to catch the highly coveted appointment at Portugal's Embassy in Tel Aviv.

Derp.

This bot uses Puppeteer. If you're running WSL/Ubuntu and you're facing issues launching Chromium, do this:

@ref https://github.com/actions/virtual-environments/issues/732#issuecomment-614809415

$ sudo apt-get update
$ sudo apt-get install -y libgbm-dev

Set up

  1. You'll first need to create a .env file in the root directory of the project and fill out the missing variables:
USER_GENERATED_ID='1234567890'`
USER_DOB='01-01-1900'
SECOND_PERSON_NAME='Brother/Sister Name'
SECOND_PERSON_DOCUMENT_NUMBER='10000'
SECOND_PERSON_DOB='01-01-1900'
  1. Manipulate the code to your liking...

  2. Run

    $ node check.js

After running, you should get to the last stage where it says either pick an appointment date or that there are no available appointments at the moment.