Code Monkey home page Code Monkey logo

booking-check's Introduction

Booking check bot

A small script that resolves catcha and checks for presence of a specific text afterwards. If not found, the notification is sent to the specified telegram user.

Note: this script was not generalised, you may want to change DOM selectors found in checkPageText function for your specific purpose.

Environment variables

  • CHECK_PAGE_URL (required) - the url of the start page that need needs to be checked
  • CAPTCHA_API_KEY (required) - the API key of the captcha-solving API
  • TELEGRAM_* (optional) - information related to the telegram notification. If not provided, message sending will be skipped, instead logged to the stdout
    • TELEGRAM_TOKEN (required) - token of the telegram bot
    • TELEGRAM_CHAT_ID (required) - chat ID to which the notification will be send. Please note that this user have to first initiate a conversation with the bot in order to receive messages later on

Usage

  1. Install dependencies via npm ci
  2. Set environment variables into .env file or provide them during runtime
  3. Run script via node index.js
  4. Check console output and/or your telegram notifications

booking-check's People

Contributors

valiafetisov avatar

Watchers

 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.