Skip to content

ssanchezromer/timelineUOC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 Timeline UOC

python python

Timeline image

What is this library for?


Library uoc.py is used for get timeline in all classrooms.
When you call the get_timeline_html() method the following files are generated automatically:
  • timeline.html
  • timeline.csv (for use in another programs like Notion)
  • timeline.ics (for use in Calendars)

Also get messages and show toast notifications (tested on Windows 10).

Installation and execution


  1. Download code & configure toml file
    • UOC credentials (username & password)
    • Configure your chromedriver path.
      Download your specific chromedriver version here
    • Information about your classrooms (classroomID, name, color and subjectId).
      You can found this information (classroomId and subjectId) in the url when you open a classroom in new window.
  2. Creation of the virtual environment
    py -m venv timeline-env  
  3. Activate virtual environment

    On Windows, run:
    .\timeline-env\Scripts\activate.bat

    On Unix or MacOS, run::

    source timeline-env/bin/activate
  4. Install libraries
    pip install -r requirements.txt
  5. Program execution
    A simple program (main.py) is used to load the library and execute the necessary code to be able to generate the files and see the message notifications.
    py main.py

    You're free to modify this program to get, for example, messages in a loop. Enjoy! ;)