Free software: GNU General Public License v3
VAST is a Python script that searches an Instructure Canvas course for media and returns results in a CSV file.
- Python 3
- YouTube API Key
- Vimeo API Key
- System permission to install python libraries
First install Vast using pip:
pip install vast
Check to make sure VAST is properly installed by running:
vast --version vast --help
Next you must provide VAST with all the configuration variables. You can do this by setting environment variables, providing each key and value as a parameter, or by using the config command to create a config file:
vast config
The config command will ask you to set the following values and store a configuration file in your user directory.
- canvas_api_url - Canvas instance URL. (e.g. https://example.instructure.com)
- canvas_api_key - Canvas API Key. (To scan a course you are not enrolled in, you'll need a sub-account or admin level key)
- youtube_api_key - See instructions below.
- vimeo_access_token - See instructions below.
In order for VAST to scan YouTube videos for closed captioning, you will need to create a YouTube Data API key. Follow the instructions below:
- Go to the Google Developer Console.
- Create a project.
- Enable *YouTube Data API V3*
- Create an *API key* credential.
In order for VAST to scan Vimeo videos for closed captioning, you will need to create a Vimeo access token. Follow the instructions below:
- Create a new App on Vimeo Developer API, please note you must have a Vimeo Developer account.
- On your application's "Authentication" page, Generate a new Access Token. (Select the Public and Private checkboxes for Scopes.)
VAST will identify the following types of media:
YouTube videos
Vimeo videos
Video files linked from the Rich Content Editor
Audio files linked from the Rich Content Editor
SWF files linked from the Rich Content Editor
Media comments in the Rich Content Editor
Embedded Canvas Video and Audio in the Rich Content Editor
Links from video providers
- Films on Demand
- Alexander Street Press
- Kanopy
Custom links can be added/removed to the lib_media_urls list in the parser.py
- VAST does not check the Quizzes tool.
- VAST can not determine if captions exist on video files, audio files, flash files, or video providers. The report will list the location of the file to check manually and provide a download link. Make sure to be logged into Canvas first; unless the download link will not work.
- VAST may not be able to check all YouTube or Vimeo videos for captions. If it can't, the report will note so.
A testing course is available in Canvas Commons. Use the search term Vast Test Course.
- Open up a terminal window
- Type
vast -c analyze
('-c' indicates you are reading the configuration file instead of manually entering them) - Enter the Canvas course id number e.g.(1234567 from https://example.instructure.com/courses/1234567)
- The report will be saved in the same directory as the vast.py script
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.