This project pulls via the Canvas API the discussions from the specified Canvas course and exports it as CSV.
These instructions will get you a copy of the project up and running on your local machine for use with your own API tokens and Canvas domains.
- Install Node 10 or greater.
- Install Git.
- Clone this repo.
git clone https://github.com/justin0022/canvas-discussion.git
- Then cd into the repo.
cd canvas-discussion
- Run the installation script.
npm install
(If you seebabel-node: command not found
, you've missed this step.) - Generate Canvas API token and copy it to clipboard.
- Rename the
sample.env
file to.env
, and add your API token toCANVAS_API_TOKEN=
. - Add your course ID to
index.js
, where it says:getDiscussions(/* add Canvas course id here */)
- Run the script.
npm start
. - An
output.csv
file should be generated with discussion data.