draft | title | aliases | tags | created | updated |
---|---|---|---|---|---|
true |
Markdown 知乎发布工具使用文档 |
2025-03-08 02:52:42 -0800 |
2025-03-08 02:53:43 -0800 |
- Python 3.11+
- Chrome/Chromium 浏览器
# 准备环境
pip install -r requirements.txt
# 安装浏览器驱动
playwright install chromium
- chrome启用远程调试:
google-chrome --remote-debugging-port=9222
- chrome登录知乎
- 将参数修改为你的配置,启动发布工具
示例:
python md2zhihu.py \
--md /mnt/gogs/kbase/obsidian/01Project/Blog/content/OpenManus.md \
--topics "智能体" "Manus" "MetaGPT" \
--cover /mnt/gogs/kbase/obsidian/01Project/Blog/content/files/agent-metagpt-manus-cover.png
python md2zhihu.py -h
usage: md2zhihu.py [-h] [--md MD]
[--topics TOPICS [TOPICS …]]
[--cover COVER]
将Markdown文件发布到知乎
options:
-h, --help show this help message and exit
--md MD Markdown文件的路径
--topics TOPICS [TOPICS …]
文章话题标签,最多3个
--cover COVER 文章封面图片路径