Skip to content

Instantly share code, notes, and snippets.

@zohooo
zohooo / cnblogs.js
Last active Dec 18, 2015
migrate blogs from cnblogs to markdown
View cnblogs.js
var feedparser = require('feedparser'),
async = require('async'),
moment = require('moment'),
tomd = require('to-markdown').toMarkdown,
fsextra = require('fs-extra');
var source = 'CNBlogs_BlogBackup.xml',
target = 'post';
function tidyHtml(html) {