metakgp/chillzone

Name: chillzone

Owner: metakgp

Description: Find a place to chill during class hours in IIT KGP

Created: 2018-02-17 13:26:44.0

Updated: 2018-04-10 19:47:46.0

Pushed: 2018-04-16 13:54:41.0

Homepage: https://chill.metakgp.org

Size: 100

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Chillzone

Will find you a chillzone inside IIT KGP at any time

Organization of the code

This repository serves as the data scraper. It will scrape data from the ERP using the given credentials. After that, you must copy the following files into chill/src/

  1. schedule.json
  2. empty_schedule.json
  3. subjectDetails.json

The submodule “chill” is the frontend that will use these JSON files to generate the static webpage. It is hosted on GitHub.

Details
Request
 'https://erp.iitkgp.ernet.in/Acad/timetable_track.jsp?action=second&dept=AE' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Cookie: JSESSIONID=ABCD.worker3;' \
--data 'for_session=2017-2018&for_semester=SPRING&dept=AE'
Getting a valid JSESSIONID
  1. Login to the ERP
  2. Go to Academic -> Timetable -> Subject List with Timetable Slots
  3. Open the browser console. Switch to the Network tab
  4. Choose any department and wait for the time table to load
  5. After the time table is loaded, check the Network tab for the POST timetable_track.js ... request. Select this request; switch to the Cookies tab and copy the JSESSIONID cookie value to your .env file

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.