Code Monkey home page Code Monkey logo

fri_timetable_to_google_calendar's Introduction

FRI timetable to Google calendar

This year, because of COVID19, the faculty doesn't provide personalized timetables as usually, so I made this simple project that scrapes the official timetable data and then allows you to select the desired lectures and import them to your Google calendar. I also wanted to try out Scrapy and Curses.

How to use

Clone the repo

git clone https://github.com/nikp00/fri_timetable_to_google_calendar.git

1.1 Windows

You first need to install all the Python packages.

pip install -r requirements.txt

Then you need to install Curses (it's not included in the requirements.txt, because this step is only necessary on Windows)

pip install windows-curses

1.2 Linux

You just need to install all the Python packages.

pip3 install -r requirements.txt

You must also provide the Google Auth data.

  1. Go to https://developers.google.com/calendar/quickstart/python
  2. Click on Enable the Google Calendar API
  3. Enter a project name of your choice and click Next
  4. Select Desktop app and click Create
  5. Then click DOWNLOAD CLIENT CONFIGURATION
  6. Save the .json file to the fri_timetable_to_google_calendar

2. Run the "GUI" (TUI - text-based user interfaces)

python main <URL TO TIMETABLE> or python3 main.py <URL TO TIMETABLE

  1. First you select the subjects that you want to add to your calendar. First screen
  2. Then you select the lectures/lab work that you want to add. All lectures are selected by default. When you select lab work that has multiple time period options, the non selected ones are grayed out. First screen
  3. Add to calendar. First screen First screen

3. Delete inserted events

When you add lectures to your calendar, their IDs are saved in a .csv file (events_ids.csv) so you can delete the automaticly. python delete_events.py or python3 delete_events.py

fri_timetable_to_google_calendar's People

Contributors

nikp00 avatar

Watchers

 avatar

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.