GithubHelp home page GithubHelp logo

skating_reservation's Introduction

Skating Reservations

Using selenium, interact with the Toronto eFun platform to quickly register a household for a skating session at a specific part at a specific start time.

Usage

Create a env.py file with:

clientNumber=<insert number>
familyNumber=<insert number>
park="Alexandra Park (Bathurst/Dundas)"
time="9:00PM"

Run the program using:

python3 main.py

Options:
--headless  (headless operation, no browser GUI)
--chrome    (chrome operation)

GCP

Debian 10, f1-microVM, 10GB storage

Installation:

sudo apt-get install python3-pip git wget firefox-esr
pip3 install selenium

Install geckodriver:

wget https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux32.tar.gz
tar -xf geckodriver-v0.29.0-linux32.tar.gz
sudo mv geckodriver /usr/bin/geckodriver

Raspberry Pi

ChromeDriver installation for Raspberry Pi

sudo apt-get install chromium-browser chromium-chromedriver

Adjust SSH timeout for the Pi

CRON Job

Setting up a CRON Job

Run at 12:50 GMT (7:50 ET) on Tues, Thurs, Fri, Sat, Sun during January, February, March

50 12 * 1,2,3 0,2,4,5,6 /usr/bin/python3 /home/USERNAME/skating_reservation/morning_script.py >> /home/USERNAME/skating_reservation/log.log 2>&1

skating_reservation's People

Contributors

aalu1418 avatar

Watchers

 avatar  avatar

Forkers

nusiloot

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.