Giter VIP home page Giter VIP logo

inpol-checker's Introduction

๐Ÿฅฌ inpol-checker

This checks Inpol's slots for you, uses Telegram bot for notification when slot is found. Each pass includes checking all three offices. The script clicks all active dates. If there are signs of the existence of unoccupied slots (I don't know the exact xpath of the slots), it sends a message to the telegram bot. After checking, the script waits for a time interval, which may jitter randomly.

๐Ÿฅ‘ Parameters

  • EMAIL (required) - login at inpol
  • PASSWORD (required) - password at inpol
  • CASE_ID (required) - case id at inpol, can be obtained from url at case's page
  • MONTHS_TO_CHECK (optional) - count of months to check for enabled dates, default: 5
  • LOG_LEVEL (optional) - log level, one of standard DEBUG, INFO, etc.., default: INFO
  • TELEGRAM_TOKEN (optional) - telegram bot's token, create new bot with @BotFather, send initial message in advance
  • TELEGRAM_CHAT_ID (optional) - your chat id, obtain it with @get_id_bot
  • PROXY_SERVER (optional) - path to http proxy, e.g. http://login:pass@address:port
  • SLEEP_INTERVAL (optional) - Sleep interval, default: 15m
  • SLEEP_INTERVAL_JITTER (optional) - Sleep interval jitter, default: 3m

๐ŸŒฝ Native Run

I recommend use pyenv with direnv for manage environments.

The script requires installed chromedriver (brew install chromedriver on mac)

pip install -r requirements.txt
EMAIL=... PASSWORD=... CASE_ID=... python run_staged_multi_loop_wh.py

๐Ÿฅฅ Run in Docker

Create .env file with parameters:

EMAIL=...
PASSWORD=...
CASE_ID=...

Then run with docker compose:

docker compose up --remove-orphans

While its running you could connect into with any VNC viewer. Connect to localhost:5900 with password password.

๐Ÿซ‘ TODO

  • add anticaptcha

๐Ÿฅ’ Similar projects

๐Ÿง… License

 โ–ˆโ–ˆโ–ˆโ–„ โ–„โ–ˆโ–ˆโ–ˆโ–“ โ–ˆโ–ˆโ–“โ–„โ–„โ–„โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“
โ–“โ–ˆโ–ˆโ–’โ–€โ–ˆโ–€ โ–ˆโ–ˆโ–’โ–“โ–ˆโ–ˆโ–’โ–“  โ–ˆโ–ˆโ–’ โ–“โ–’
โ–“โ–ˆโ–ˆ    โ–“โ–ˆโ–ˆโ–‘โ–’โ–ˆโ–ˆโ–’โ–’ โ–“โ–ˆโ–ˆโ–‘ โ–’โ–‘
โ–’โ–ˆโ–ˆ    โ–’โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆโ–‘โ–‘ โ–“โ–ˆโ–ˆโ–“ โ–‘ 
โ–’โ–ˆโ–ˆโ–’   โ–‘โ–ˆโ–ˆโ–’โ–‘โ–ˆโ–ˆโ–‘  โ–’โ–ˆโ–ˆโ–’ โ–‘ 
โ–‘ โ–’โ–‘   โ–‘  โ–‘โ–‘โ–“    โ–’ โ–‘โ–‘   
โ–‘  โ–‘      โ–‘ โ–’ โ–‘    โ–‘    
โ–‘      โ–‘    โ–’ โ–‘  โ–‘      
       โ–‘    โ–‘           

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.