项目地址:掘金小册 markdown 转换器,欢迎 star 蟹蟹购买过的掘金小册,通过谷歌 pupeteer 自动爬取 html 文档,并将 html 文档转换为 markdown 格式的文件。安装方式首先 clone 此项目:git clone https://github.com/oliyg/juejinxiaoce.git然后安装依赖:npm i推荐使用 nrm 管理镜像源,使用淘宝镜像:nrm use taobao手动下载 chromium:chromium 官网下载将 chromium 解压缩,连同 chrome-win 文件夹一同放入项目根目录中去最后项目目录如下:使用方法新建 .env 文件到根目录,并根据 .env.example 填写掘金登录用户名和密码以及要爬取的小册ID信息:小册ID见 URL 链接:.env 文件修改完毕后执行 npm start 等待出现消息 all done. enjoy. 完成转换,效果如下:免责该项目仅作为技术讨论,学习和研究使用隐私该项目不会存储和发送任何用户隐私数据LicenseThe MIT License (MIT)Copyright (c) 2019 OliverYoungPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the “Software”), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OROTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USEOR OTHER DEALINGS IN THE SOFTWARE.