Giter Site home page Giter Site logo

luxmedsniper's Introduction

LuxmedSniper

LUX MED appointments sniper

Simple tool to notify about available slot in LUX MED medical care service using pushover notifications.

How to use LuxmedSniper?

First of all create virtualenv and install Python requirements from requirements.txt

  1. For each specialist create configuration file (yaml format) and save it for example as my_favourite_surgeon.yml:
luxmed:
  email: EMAIL
  password: PASSWORD
luxmedsniper: #                     mandatory  mandatory
  doctor_locator_id: 5*4430*-1*-1 # (cityId, serviceVariantId, facilitiesIds, doctorsIds) -1 means any.
                                  # You can get those ids by reading form data sent to https://portalpacjenta.luxmed.pl/PatientPortal/Reservations/Reservation/PartialSearch
                                  # on https://portalpacjenta.luxmed.pl/PatientPortal/Reservations/Reservation/Search by chrome dev tools
  lookup_time_days: 14 # How many days from now should script look at.
pushover:
  user_key: # Your pushover.net user key
  api_token:  # pushover.net App API Token
  message_template: "New visit! {AppointmentDate} at {ClinicPublicName} - {DoctorName}"
  title: "New Lux Med visit available!" # Pushover message topic
misc:
  notifydb: ./surgeon_data # State file used to remember which notifications has been sent already
  1. Run it
nohup python3 luxmedSnip.py -c /path/to/my_favourite_surgeon.yml &
  1. Wait for new appointment notifications in your pushover app on mobile :)!

Warning

Please be advised that running too many queries against LuxMed API may result in locking your LuxMed account. Breaching the 'fair use policy' for the first time locks the account temporarily for 1 day. Breaching it again locks it indefinitelly and manual intervention with "Patient Portal Support" is required to unlock it.

luxmedsniper's People

Contributors

pawliczka avatar ynleborg avatar tkuba avatar kkot avatar dependabot[bot] avatar beniamink avatar jacekjaros avatar psgoral avatar notiooo avatar teiron 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.