Download articles from 百度文库 wi
Articles on 百度文库 are downloaded with 下载券 normally. TROUBLESOME, especially I have no 下载券 ! So I made this simple automatic tool to capture the article as images, then you can process these images as your mind, e.g. converting to pdf, merge them etc.
UsageYou can run codes directly
npm start
Or, you can build and run bin file
npm run build
# CLI
node ./dist/index.js
# Websocket server
node ./dist/server.js
More, you can install as global command
npm install -g .
# Just exec the command
# CLI
bdwkc
# Websocket server
bdwkc_ws
Features Support DOC Support PDF Support XLS Support TXT Support PPT Better CLI interface Websocket interface Perfect the capture method LicenseATTENTION
Required environment variables if you run this program due to npm global installed command
PUPPETEER_EXECUTABLE_PATH: Puppeteer standard env. variable, which tells an executable path of Chromium/Chrome
BDWKC_OUTPUT_DIR: Output path of captured document images
MIT
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。