/blog_website

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

基于 node 编写的导出博客的爬虫脚本+hexo部署,可以搭配Jenkins一键将CSDN博客部署到自己服务器的博客中

脚本运行方式:

npm i

npm start

npm export_blog 或 node server -type:csdn -id:time_____

-type 表示博客类型

默认导出目录:source/_posts

npm update_blog

只导出新增的博客

导出效果是 markdown

hexo运行方式:

npm i hexo -g

npm start 或 hexo server -p 10245

构建静态文件:

npm run build

删除构建:

npm run clean