Skip to content

devclub-iitd/FreeSpace

Repository files navigation

Free-Space

Introduction

This app allows the students of IIT Delhi to know which Lecture Halls are free at a particular time of the day.

Installing the app

First, clone the repository.use

 git clone
Go to the repository's folder and then create a virtual environment.

Create a virtual environment and activate it.
Install the requirements.

Using virtualenv

 $ python3 -m virtualenv FreeSpace
 $ . FreeSpace/bin/activate
 $ pip install -r requirements.txt 

Using Anaconda

$ conda create -n FreeSpace --yes python=3.*
$ conda activate FreeSpace
$ pip install -r requirements.txt

You are good to go.

Running the app

The app requires the user to manually login to the roombooking site. Once logged in, get the cookie with name PHPSESSID and pass it as an argument to the python script along with how the number of weeks you want to scrape the data for. not specifying the argument, takes the default value of 2.

For generating the tables which get shown on the site, run

$ python tableGen.py [COOKIE_ID] [WEEKS_TO_SCRAPE]

Then view the site by running

$ python3 -m http.server 8080& sensible-browser http://localhost:8080

NOTE

The room booking site only shows the tables from the day after, so for debugging purposes, it is recommended to move forward your system's date by 1.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages