Python 3.6+
Linux、Unix,不支持 Windows
wkhtmltopdf - 如果需要导出为 PDF 则需要安装 (https://wkhtmltopdf.org/downloads.html)
- git clone https://github.com/huangxinping/zhihu.git
- cd zhihu && python setup.py sdist && cd dist && tar xzf zhihuer-0.0.1.tar.gz && cd zhihuer-0.0.1 && python setup.py install
- reopen terminal
zhihuer -i, --id: 支持多个ID,多个ID通过','分割
-d, --destination: 默认是桌面(测试环境:Mac OS)
-f, --format: html或pdf,默认为 html
-t, --threshold:阈值,低于该阈值的点赞数回答则过滤,默认为 10
zhihuer --id 345516318,339771266 --destination ~/Desktop --format pdf --threshold 100