工具 | CSDN博客转 -> markdown

作者 Gubaidan 日期 2018-05-25
工具 | CSDN博客转 -> markdown

csdn2md

转换html至markdown

前言 Before:

如何转换html至md,简直纠结。

因而,用来迁移博客的工具当然有呀。github here.

使用 Usage:

@param {author} csdn用户名               
@param {dirPath} 文件保存路径

public class Main {

private static String host = "http://blog.csdn.net";

public static void main(String args[]) throws IOException {

String author = "xxxx"; //csdn用户名

String dirPath = "/Users/xxxx/"; //文件保存路径(绝对路径)

new CorePaser().parse(host, author, dirPath, true); //是否爬取图片 默认false
}
}

展示 Show:

展示某个人博客的转换效果

用到的工具

工具-html2markdown