https://github.com/codexu/md-juejin
https://github.com/codexu/md-juejin
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codexu/md-juejin
- Owner: codexu
- Created: 2025-03-20T07:02:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T08:09:09.000Z (about 1 year ago)
- Last Synced: 2025-03-20T08:31:46.126Z (about 1 year ago)
- Language: TypeScript
- Size: 8.96 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MD JUEJIN
掘金搬家工具,一键搬走自己的所有文章(注意这里 MD 不是“妈的”,而是“markdown”)。
本质上是一个基于 Node.js 的命令行工具,可以快速将单篇文章或用户的文章列表批量导出 md 文件,包含所有图片。
## 演示
使用命令行工具,快速批量导出:

导出结果,每篇文章导出为独立的文件夹,包含 md 文件和图片:

## 环境要求
- Latest version of Node.js 18, 20 or 22.
- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).
- macOS 13 Ventura, or later.
- Debian 12, Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.
## 使用
无需安装,即可使用。
首次使用时,安装过程中将会自动安装 playwright 和 chromium,可能需要几分钟时间。
### 单篇文章导出
```bash
# Using npx
npx md-juejin@latest post
# Using pnpx
pnpx md-juejin@latest post
```
article-url:掘金文章的 URL,例如:https://juejin.cn/post/7482692656990470196
### 批量导出
```bash
# Using npx
npx md-juejin@latest posts
# Using pnpx
pnpx md-juejin@latest posts
```
posts-url:掘金用户的文章列表的 URL,例如:https://juejin.cn/user/2559318798640807/posts
### 本地开发
```bash
pnpm install
pnpm dev post
pnpm dev posts
```
## License
MIT