# blog_website **Repository Path**: shawn_leet/blog_website ## Basic Information - **Project Name**: blog_website - **Description**: 基于 node 编写的CSDN博客导出的爬虫脚本+hexo部署 - **Primary Language**: JavaScript - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-05-09 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 基于 node 编写的导出博客的爬虫脚本+hexo部署,可以搭配Jenkins一键将CSDN博客部署到自己服务器的博客中 ### Jenkins流水线语句参考:https://gitee.com/DieHunter/blog_website/blob/master/pipeline ### 示例:http://website.diehunter1024.work/blog_website/ ### 博客:https://blog.csdn.net/time_____/article/details/121995028 #### 脚本运行方式: #### npm i #### npm start #### npm export_blog 或 node server -type:csdn -id:time_____ #### -type 表示博客类型 #### -id 表示用户名,如:在'https://blog.csdn.net/time_____'中,'time_____'是用户名 #### 默认导出目录:source/_posts #### 导出效果是 markdown #### hexo运行方式: #### npm i hexo -g #### npm start 或 hexo server -p 10245 #### 构建静态文件: #### npm run build #### 删除构建: #### npm run clean