Skip to content

Instantly share code, notes, and snippets.

View Hackin7's full-sized avatar
💭
Learning some new stuff & working on new projects!

Terence Chan Zun Mun Hackin7

💭
Learning some new stuff & working on new projects!
View GitHub Profile
@Koenvh1
Koenvh1 / canvas-scraper.py
Created April 13, 2019 12:56
Scrape your Canvas website and download all content to a folder. Tested on 2019-04-13.
import argparse
import os
import re
from pathvalidate import sanitize_filename
from canvasapi import Canvas
from canvasapi.course import Course
from canvasapi.exceptions import Unauthorized, ResourceDoesNotExist
from canvasapi.file import File
from canvasapi.module import Module, ModuleItem