Book a study room via Python script.
(any other libraries have not been tested)
- Moffitt
- Google Chrome
- Python 2.7
- Selenium (
pip install selenium
) - PyYAML (
pip install pyyaml
)
- Download the appropriate Chrome driver here.
- Edit the config file. You will need to provide the URL for room reservations, your booking information (room, time, etc.), and your CalNet credentials.
- Make sure your physical cursor is out of the way (ideally on the edge of the screen).
Run the following command:
python main.py -cfg <path to config.yaml> -c <path to chromedriver>
start_time
: desired booking time in military formatroom
: room number (within library)midnight_launch
: wait until midnight (i.e. the start of the next day) to reserve the room