Giter Club home page Giter Club logo

gyft2's Introduction

GYFT 2

Get Your Freaking Timetable Reborn

About

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

How to use the program?

  • 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. Timetable Page 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.

Saving Timetabe 1

Saving Timetabe 2

  • Step 2: Now run the gyft script

for Linux/Mac:

$ python3 gyft2.py

for Windows:

> python gyft2.py

Steps

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:

  1. Open Google Calendar on a computer. Note: You can only import from a computer, not a phone or tablet.

  2. In the top right, click Settings Settings > Settings.

  3. Open the Calendars tab.

  4. Click Import calendar between the "My calendars" and "Other Calendars" sections.

  5. Click Choose File and select the file you exported. The file should end in "ics" or "csv"

  6. Choose which calendar to add the imported events to. By default, events will be imported into your primary calendar.

  7. Click Import.

If you for some reason chose No:

  • Your timetable will be saved in data.txt. Make any changes required appropriately in data.txt.

Please star the project if you found it useful

Bonus Step:

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.

License

GPLv3.

gyft2's People

Contributors

xypnox avatar proffapt avatar chirag-ghosh avatar rajivharlalka avatar sangeet259 avatar ashiscs avatar raghwendra-dey avatar dependabot[bot] avatar

Stargazers

Roman avatar  avatar Ashwani Kumar Kamal avatar  avatar - avatar  avatar Harsh Gupta avatar Aaryan Durgam avatar Jai Kumar Dewani avatar  avatar Taapas Agrawal avatar Navaneeth Suresh avatar Athitya Kumar avatar Sohan Rudra avatar Dibya Prakash Das avatar Himanshu Mishra avatar  avatar Siddharth Kannan avatar Naresh avatar Nishant Nikhil avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

gyft2's Issues

Doesn't ignore the saved html files and folders

The timetable page and the folder for the files are currently not ignored in .gitignore.

Add specific rules to ignore these files. Note that the name of the files is different for every student. In my case it was: Welcome Aditya Vikram Singh to ERP, IIT Kharagpur.htm and the folder was named similarly.

Deploy gyft2 as a web service

Instead of cloning the repo and running the script, we could rather have students uploading their downloaded html file to our website and downloading an ICS file in return. A simple flask app, with no db requirements and just providing an ICS file to download would do. ๐Ÿ˜„

WDYT?

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.