Coder Social home page Coder Social logo

abhilash1in / bintang-buddy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teoh/bintang-buddy

0.0 1.0 0.0 37 KB

An easy way to find court reservations on https://bintangbadminton.org/court-reservations/

License: MIT License

Python 100.00%

bintang-buddy's Introduction

title

The easiest way to view ๐Ÿธ court reservations in the Bay Area

Ever wanted to play badminton at a certain time? Have you tried looking for court reservations on https://bintangbadminton.org/court-reservations/? If yes, you've probably seen this:

this is what you first see when you try to make a bintang booking

You're looking for courts and their availability, only to click through this nightmare: ๐Ÿ˜ฑ๐Ÿ™€

when you click through on one gym you see many courts when you click through on one court you finally see the times

That's OK! With a few easy steps, you can now be viewing court schedules with buttery smoothness: image

Command line tool

Installation

pip install bintang-buddy

Usage

The steps are straightforward and very human.

Try running the commands below:

bintang-buddy -d "2022-01-13" -g "milpitas" -g "sunnyvale"

This script has two arguments:

  1. -d: Date string, in the form of YYYY-MM-DD
  2. -g: The names of the gyms you'd like to load court schedules for. If you leave this empty you'll get every court for every gym, and you'll be waiting for a while. Your choices: campbell, dublin, milpitas, san carlos, sunnyvale.

Credits

This is a fork of teoh/bintang-buddy which provided a lot of the base functionality (kudos!). However,

  • teoh/bintang-buddy required users to clone the repository, create a virtual environment, activate it, install the project inside the virtual environment, obtain a Bearer token, set an environment variable with the Bearer token and run a Python script.
  • This process was quite involved even for a moderately technical person.

This fork, however:

  • Creates an easy-to-use CLI based on click which is published to pypi. The CLI can be installed through a single command and is ready to go.
  • Removes the need to manually (and painstakingly) obtain a Bearer token for authentication (as described here). This is now done automatically behind the scenes.
  • Uses multithreading to significantly reduce load times.
  • Uses linting and formatting tools to keep code clean and organized.
  • The goal is to eventually merge changes from this repository back into teoh/bintang-buddy.

bintang-buddy's People

Contributors

abhilash1in avatar teoh avatar

Watchers

 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.