shvekyha / myVisitCrawler

This includes a js script that can scan the myVisit website in order to find an appointment
16 stars 1 forks source link

myVisitCrawler ๐Ÿ•ต๏ธ

This repo includes a js script that scan the myVisit website in order to find an appointment for renewing an existing expired passport. In order to run it, you'll need a way to run a custom js in the browser (I'm using Tempermonkey).

NOTICE: For now this is the only purpose of the script, it searches only the internal office (ืจืฉื•ืช ื”ืื•ื›ืœื•ืกื™ืŸ ื•ื”ื”ื’ื™ืจื”), only for the service of issuing an Isreali biometric passport, renewing an existing expired one (not first passport, not a stolen one or lost one etc). If you need any other service it can't be done by this specific script (can be twicked if you really want)

IMPORTANT: Because of CAPTHCA + 2FA the script cannot login for you! A login using your phone is needed, only then you can run the script for automating the search. Also, the script wont book an appointment for you, but rather pop an alert window once an appointment is found. So you'll need to be near the computer and wait for the result, then if a spot was found and it's suitable for you, you can stop the script and book it manually.

Using the script

Custom the script to your needs

Download the script and change the user data at the top of the screen to your own:

const ID = 'XXXXXXXXX';                   //The ID of the person requesting the appointment
const PHONE_NUMBER = 'XXXXXXXXXX';        //The phone number of the person requesting the appointment

const LOCATION_NUM_TO_CHECK = 20;         //Number of locations to scan
const LOCATION_SKIP_LIST = [];            //List of locations indexes to skip (0-based) - for example [13,20]
const MONTHS_SKIP_LIST = ['Aug','Jul'];   //List of months to skip when looking for an appointment

Consts explanation

Running the script

Place the script in your preffered js tool (if using Tempermonkey, you can use as is, for other tools remove the comments in the beggining). Then follow these steps:

Found spot alert

Enjoy and good luck!

IMPORTANT: This script is for personal use only! I wrote it out of my own pesonal pain trying to find an appointment, please dont exploit it. A person who will be found as using this for commercial purposes, taking money from people for using it, or using it in any other way not intended by the author, will be reported and prosecuted by law.