< Back

Creating many Canvas pages at once

We needed to make information on all our taught courses (modules) available to our students so that they could make an informed choice as to which courses to select ahead of the second semester or the following term.

I had already scraped our course admin system (Curriculum Manager) to create a single html page for each course using Python's Webdriver and BeautifulSoup packages (I'll make another post on this).

I used the Python Canvasapi wrapper to create a new module block at the bottom of a Canvas page, visible to all our students, and created an Canvas page within this that indexed all our courses. I also used each course html file to create a Canvas page and then linked these pages to my index page (see figure below).

In total, 148 pages were created. This job would have taken a very long time if performed manually. The boring task has been successfully automated using Python and the Canvas API.

[Link to GitHub Repo]: https://github.com/rtreharne/module_directory