Giter Site home page Giter Site logo

madhavtripathi05 / us-visa-appointment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daydos/us-visa-appointment

1.0 1.0 1.0 71 KB

A puppeteer script to find and schedule an earlier interview for visas

License: GNU General Public License v2.0

JavaScript 100.00%

us-visa-appointment's Introduction

What is this?

This is a small puppeteer script that can be used to find and schedule an earlier US consulate appointment for US Visa in Canada and other countries. You must have an appointment made manually before using this script.

This might be able to used for other countries by finding the consular ids mentioned below for that specific country.

Prerequisites

  1. Download and install Node.JS LTS 16.14.2 from https://nodejs.org/en/download/ for whatever OS you are using
  2. Open command line/terminal window and type in following
    1. npm install puppeteer --save
    2. npm install minimist --save
    3. npm install axios --save
  3. Install Pushover Notifications app from App Store/Google Play if you would like to have push notifications when a date is found

Usage

Open command line or terminal window and navigate to the folder usappointment.js. Type in below code with updated arguments from command line arguments section.

Mac/Linux:

node usappointment.js -r 'ca' -d '2022-06-22' -u 'username' -p 'password' -a 359734258 -c 95 -t 120 -n 'pu5hov3ru53rk3y'

Windows:

node usappointment.js -r "ca" -d "2022-06-22" -u "username" -p "password" -a 359734258 -c 95 -t 120 -n "pu5hov3ru53rk3y"

Command line arguments

-r Country code (ISO-3166 Alpha-2 code https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). Canada (ca), United States (us)

-d Threshold date to look for earlier appointments. Format: YYYY-MM-DD, optional: Don't pass "-d date" in the command to select current appointment date.

-u Username

-p Password

-a Application id. This needs to be grabbed from the url when you navigate to Reschedule Appointment page. Example: https://ais.usvisa-info.com/en-ca/niv/schedule/32943478/appointment

-c Consular id. Calgary 89, Halifax 90, Montreal 91, Ottawa 92, Quebec City 93, Toronto 94, Vancouver is 95 for Canada. You can find ids for other consulates from the dropdown values in the appointment page.

-t Retry timeout in seconds. Keep this above 120 seconds to make sure you are not getting temporarily banned from receiving available dates

-n Pushover User Key from Pushover Notifications app. Do not provide this argument if you don't want to receive notifications.

-g Use this argument without any value if your application consists more than one person

Tips

Comment line 142 and uncomment line 144 in usappointment.js to see puppeteer in action

us-visa-appointment's People

Contributors

daydos avatar shubhambeta avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

akrn

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.