A research project analyzing the experiences available from Erowid in the interest of harm reduction.
Gunzip the gzipped JSON array, install dependencies, and run Node through NPM.
gunzip -c erowid.json.gz >! erowid.json
npm install
npm start
Once you've got everything installed, you should be able to do trival edits through main.js. For example, removing anonymous authors from the data could be done with the following code.
var erowid = require('./lib/erowid.js');
erowid(function (item) {
if ('author' in item && 'name' in item.author) {
if (item.author.name.toLowerCase() === 'anonymous') {
delete item.author.name;
return item;
}
}
}, true);
Please open an issue if you have any questions, comments, or concerns. If you need to get a hold of me personally, I'm @ChristianBundy on Twitter, or you can email me at me@christianbundy.com.
These experiences were downloaded from Erowid and are bound by their copyright rules.