niconico comment parser.
const axios = require('axios');
const NicoCommentParser = require('niconico-comment-parser').default;
const reqData = [{
'thread_leaves': {
'thread': 1173108780,
'content': '0-9999:100,500',
'scores': 1,
'threadkey': '',
'force_184': 1
}
}];
axios.post('http://msg.nicovideo.jp/10/api.json/', reqData)
.then((res) => NicoCommentParser.parse(res.data))
.then((data) => console.log(data))
.catch((err) => console.error(err.stack || err));
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request