Get Your Freaking Timetable Reborn
Processes your timetable from ERP and gives you an ICS file which you can add in any common calendar application (such as Google Calendar).
Note: Please use this utility with
python3
. You should have python installed, Also run this to install the dependencies
$ pip3 install bs4 icalendar #linux/mac
$ pip install bs4 icalendar #windows
- Step 1: Get your timetable from ERP:
Log in to ERP portal, and visit https://erp.iitkgp.ac.in/Acad/student/view_stud_time_table.jsp.
Save this page in the Directory using Ctrl+S
on any browser (Use Web page, HTML only
) and make sure to select the folder of gyft2 for saving the file.
- Step 2: Now run the gyft script
for Linux/Mac:
$ python3 gyft2.py
for Windows:
> python gyft2.py
If you choose to generate ICS file, you will have timetable.ics
in the same directory.
You can follow the guide given below (taken from here) to add it to your Google Calendar:
-
Open Google Calendar on a computer. Note: You can only import from a computer, not a phone or tablet.
-
In the top right, click Settings Settings > Settings.
-
Open the Calendars tab.
-
Click Import calendar between the "My calendars" and "Other Calendars" sections.
-
Click Choose File and select the file you exported. The file should end in "ics" or "csv"
-
Choose which calendar to add the imported events to. By default, events will be imported into your primary calendar.
-
Click Import.
If you for some reason chose No:
- Your timetable will be saved in
data.txt
. Make any changes required appropriately indata.txt
.
Please star the project if you found it useful
To generate an ICS file from data.txt
:
-
Step (i): Run the command:
$ python3 generate_ics.py # or for windows > python generate_ics.py
# you can provide input and output file path to this python script $ python3 generate_ics.py --input d.txt --output t.ics # or for windows > python3 generate_ics.py --input d.txt --output t.ics
-
Step (ii): Open your calendar application and import this ICS file into it. For Google Calendar You can follow this guide.
GPLv3.