Saving canvas discussion forums as JSON and HTML!
It's really not actually that exciting :(
npm i -D coarchive/archive-canvas-discussion
. Do not install globally on Windows! It just doesn't work for some reason.- Optionally, grab yourself a copy of style.css and stick it somewhere. This is what you can use instead of the builtin stylesheet.
- Make a bookmarklet with this file's content as the url.
- Go to the discussion forum page you want to archive and click it.
- Copy that JSON output.
archive-canvas-discussion
- Respond to the prompt.
What is the name of this discussion forum?
> hw-m2
Make sure the JSON is on your clipboard.
Then press enter when done...
Wrote df/hw-m2.json
Wrote df/hw-m2.html
Bye.
Options can be given through command line arguments to skip the prompt. In the above example, --stylesheet
, --dir
, and --exclude
have already been provided.
--stylesheet:<path>
--dir:<path>
--name:<name>
--exclude:<name,name,*>
To exclude all names from scrubbing, use *
.