Skip to main content

eFitness.com.pl Booking sniper

Project description

eFitness.com.pl booking sniper

This small utility books trainings on eFitness.com.pl in your name. Be always first on list for your favourite training. Code basically allows my wife to always attend her favourite trainings :)

Installation

pip install efitness-sniper

Usage

Create file .efitness.yml in your home directory with:

---
login_data:
  subdomain: modelarnia-bb-cms # this is a subdomain of club (example for http://modelarnia-bb-cms.efitness.com.pl)
  user: your_login_name # specify your account login
  password: your_password # specify account password

sniper_rules: # You can define as much rules as you want :)
# How much days script should look forward (if bigger - it traverses more calendar pages, so I recommend to set it n+1 day
# where n is maximum time before allowed registration) - minimum here is 3 (due to cancellation policy)
# lower values will be overriden to 3
  - look_ahead_days: 6 
    match: "BODY BALL" # Name of training - you can use part of name, eg. BALL will match BODY BALL
    day_of_week: 0 # Specify day of week that you are interrested in (0 - Monday)
    after_hour: 16:00 # Do not book trainings before 4PM
    before_hour: 21:00 # Do not book trainings after 9PM
  - look_ahead_days: 6 # Another training definition
    match: "TRX"
    day_of_week: 2
    after_hour: 18:00
    before_hour: 21:00

Add efitness command to your crontab - I recommend to not do it more often than 15min, so: */15 * * * *

License

MIT License
Copyright (c) 2020 Marek Wajdzik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

efitness_sniper-0.6.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file efitness_sniper-0.6.tar.gz.

File metadata

  • Download URL: efitness_sniper-0.6.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for efitness_sniper-0.6.tar.gz
Algorithm Hash digest
SHA256 6bfd10c1d838f936a781b4d8abbba0528167c7ebbc5966b05fdf48c25b730d39
MD5 50b8caa80e8df14c42386893e7876992
BLAKE2b-256 eeb553efc46164509c10902635295a398a93800b7ea6d6b5126e5892ed682fe3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page