{"id":27864796,"url":"https://github.com/codexu/md-juejin","last_synced_at":"2025-05-04T21:11:48.969Z","repository":{"id":283433651,"uuid":"951740811","full_name":"codexu/md-juejin","owner":"codexu","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-20T08:09:09.000Z","size":9396,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T08:31:46.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codexu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-20T07:02:44.000Z","updated_at":"2025-03-20T08:09:12.000Z","dependencies_parsed_at":"2025-03-20T08:42:23.067Z","dependency_job_id":null,"html_url":"https://github.com/codexu/md-juejin","commit_stats":null,"previous_names":["codexu/md-juejin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codexu%2Fmd-juejin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codexu%2Fmd-juejin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codexu%2Fmd-juejin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codexu%2Fmd-juejin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codexu","download_url":"https://codeload.github.com/codexu/md-juejin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252399496,"owners_count":21741674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-04T21:11:48.411Z","updated_at":"2025-05-04T21:11:48.958Z","avatar_url":"https://github.com/codexu.png","language":"TypeScript","readme":"# MD JUEJIN\n\n掘金搬家工具，一键搬走自己的所有文章（注意这里 MD 不是“妈的”，而是“markdown”）。\n\n本质上是一个基于 Node.js 的命令行工具，可以快速将单篇文章或用户的文章列表批量导出 md 文件，包含所有图片。\n\n## 演示\n\n使用命令行工具，快速批量导出：\n\n![](https://github.com/user-attachments/assets/e97ebc3f-75ee-44ed-9971-e1d97d4b446e)\n\n导出结果，每篇文章导出为独立的文件夹，包含 md 文件和图片：\n\n![](https://github.com/user-attachments/assets/31d06267-9d2c-421f-adf4-d712be15e623)\n\n## 环境要求\n\n- Latest version of Node.js 18, 20 or 22.\n- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).\n- macOS 13 Ventura, or later.\n- Debian 12, Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.\n\n## 使用\n\n无需安装，即可使用。\n\n首次使用时，安装过程中将会自动安装 playwright 和 chromium，可能需要几分钟时间。\n\n### 单篇文章导出\n\n```bash\n# Using npx\nnpx md-juejin@latest post \u003carticle-url\u003e\n\n# Using pnpx\npnpx md-juejin@latest post \u003carticle-url\u003e\n```\n\narticle-url：掘金文章的 URL，例如：https://juejin.cn/post/7482692656990470196\n\n### 批量导出\n\n```bash\n# Using npx\nnpx md-juejin@latest posts \u003cposts-url\u003e\n\n# Using pnpx\npnpx md-juejin@latest posts \u003cposts-url\u003e\n```\n\nposts-url：掘金用户的文章列表的 URL，例如：https://juejin.cn/user/2559318798640807/posts\n\n### 本地开发\n\n```bash\npnpm install\npnpm dev post \u003carticle-url\u003e\npnpm dev posts \u003cposts-url\u003e\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexu%2Fmd-juejin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodexu%2Fmd-juejin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexu%2Fmd-juejin/lists"}