Giter VIP home page Giter VIP logo

nl-tracker's Introduction

Installation

  1. Install Python3 (confirmed to work on 3.8.9 and 3.10.4 on MacOS, Windows and Armbian)
  2. pip install -r requirements.txt
  3. Fill the config.json (you can create a copy of file before filling the values as local.config.json for easier updates from git to avoid conflicts)

Telegram setup

  1. Create bot via @BotFather, remember the API token for the bot
  2. Create a channel
  3. Add bot as an admin of the channel

Captcha

Since end of August hCaptcha was introduced. In order to automatically work around that https://anti-captcha.com/ service is used.

However, solving captcha is not enough.

Firstly, modern browsers self-identify themselves via navigator.webDriver and let captcha services prevent automatic access. To work around this we have to use old browser builds. For Firefox it is confirmed that 78.9.0esr version works.

Secondly, browser runs via man-in-the-middle proxy (mitmproxy) in order to be able to intercept the JS callback which site normally calls to pass the captcha token to the server. Otherwise, it's from very hard to impossible to do.

Browser

Firefox

Old Firefox (like 78.9.0esr) is confirmed to work in both headless and regular modes.

Chrome

Fresh Chrome versions also work with the help of the undetected-chromedriver.

Please note however that it only seems to work in regular (not headless) mode.

You can use Virtual Display like Xvfb to work around that.

With Xvfb you can simply run it like:

xvfb-run python main.py --headless=False check

Parameters

Moscow

https://www.vfsvisaonline.com/Netherlands-Global-Online-Appointment_Zone2/AppScheduling/AppWelcome.aspx?P=OG3X2CQ4L1NjVC94HrXIC7tGMHIlhh8IdveJteoOegY%3D

Dubai

https://www.vfsvisaonline.com/Netherlands-Global-Online-Appointment_Zone2/AppScheduling/AppWelcome.aspx?P=CE0jbgR7fd0NTf6eHZaG9Ksnpf50voAKsauBjihfkds%3D

Specify null as city because only one city is available.

nl-tracker's People

Contributors

gubenkoved avatar

Stargazers

Alexei Kochetov avatar Dmitry Volosach avatar

Watchers

James Cloos avatar  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.