d2l-export-scraper
Reads a d2l export folder and returns all the html chunks
Can be run in the Command Line or as a module
In Command Line
> node d2l-export-scraper // or node main.js if your inside the folder
> prompt: useNight: (false) // Set true if you want nightmare to go grab the hard to get urls (will ask for username and password)
> prompt: folderPath: (./export) // the folder that contains the export
> prompt: resultFile: (result.json) // where you want all the html chunks
As Module
var scraper =// Without the nightmare stuffvar htmlChunks =// With the nightmare stuff
auth.json file should look like
Nightmare Stuff
The Nightmare stuff adds a couple more helpful urls for things like rubrics and dropboxs, but I would only use it if you are going to use the hrefs I give you.