🔥 掘金小冊 markdown 轉換器

20190121001820.png

項目地址:掘金小冊 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 文件夾一同放入項目根目錄中去

最後項目目錄如下:

20190120235001.png

使用方法

新建 .env 文件到根目錄,並根據 .env.example 填寫掘金登錄用戶名和密碼以及要爬取的小冊ID信息:

20190120235150.png

小冊ID見 URL 鏈接:

20190120235353.png

.env 文件修改完畢後執行 npm start 等待出現消息 all done. enjoy. 完成轉換,效果如下:

20190121000703.png

20190121000715.png

免責

  • 該項目僅作爲技術討論,學習和研究使用

隱私

  • 該項目不會存儲和發送任何用戶隱私數據

License

The MIT License (MIT)
Copyright (c) 2019 OliverYoung

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies 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 OF
MERCHANTABILITY, 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 OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章