Extract raw data from datawrapper visualisations hosted at datawrapper.dwcdn.net.
const dataunwrapper = require('dataunwrapper');
dataunwrapper('<id>', function(err, data){
// ...
});
<id>
is the unique 5 character string from the url https://datawrapper.dwcdn.net/<id>/0/
Install with npm i -g dataunwrapper
.
dataunwrapper <id>