This Python script calculates the total duration of all videos in a course hosted on the Canvas Learning Management System. It is designed to help students plan their study time more efficiently by giving them an idea of how long it will take to go through course materials.
- Python 3
-
Clone the Repository: First, clone this repository to your local machine using git:
git clone https://github.com/daringcalf/canvas-schedule-helper.git
-
Install Dependencies: Inside the cloned directory, install the required Python packages:
cd canvas-schedule-helper
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
pipenv shell pipenv install
To use this script, you must provide the course id and the cookies from your browser.
-
Obtain Cookies: Navigate to your Canvas course page in your web browser. You'll need to retrieve your session cookies.
-
Execute the Script: Run the script and provide the CourseId and cookies when prompted. The
<CourseId>
is the number in the course URL. For example, if the course URL ishttps://canvas.asu.edu/courses/181496/modules
, then the<CourseId>
is 181496.python main.py # The script will prompt you to enter: Enter course ID: <CourseId> Enter cookies: <paste Cookies here>
Feel free to dive in! Open an issue or submit PRs.
- Fork the repo on GitHub
- Clone this project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that your changes can be reviewed
Distributed under the MIT License. See LICENSE
for more information.
This tool was created to help students manage their study time more effectively. If you find it helpful, please consider giving it a star. Your support means a lot!