Backup your Zhihu contents before quitting Zhihu.
Project description
退乎前备份知乎回答:zhihubackup
每个知乎答主都有退乎的梦想,但退乎前如果删光回答,则十分可惜。因此,我用Python写了60行的脚本,可以在退乎前备份自己的所有回答和文章,以免事后后悔。
安装
pip install zhihubackup[node]
如果已安装Node.js,则可以去掉[node]
。
使用
假如你是@贱贱,你的id是splitter
,那么可以编写Python脚本:
from zhihubackup import backup_zhihu
backup_zhihu("splitter")
静等一段时间。运行结束后,可以看到产生了名为splitter
的文件夹:
- splitter
|- answer (842 files)
|- article (101 files)
|- pin (3214 files)
|- question (57 files)
备份已经成功,现在可以删光回答和文章了。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zhihubackup-0.2.0.tar.gz
(15.9 kB
view details)
Built Distribution
File details
Details for the file zhihubackup-0.2.0.tar.gz
.
File metadata
- Download URL: zhihubackup-0.2.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1db30614e330c626dac0d4ae9e22f3e711edd84d7104330844f63d8ebd39836 |
|
MD5 | fa9395270257a9ab4dc549874ed81b11 |
|
BLAKE2b-256 | 200716a543ebb524a1fb2546ba48474d942d0dfa1a76e536f2bbca039e2d6239 |
File details
Details for the file zhihubackup-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: zhihubackup-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5956abee4c1d72821aa3036aee5d33a72fea9974716cdc1cc7269630c1ea4eea |
|
MD5 | dc6051a4166199ab0f5cecae9864007d |
|
BLAKE2b-256 | 945829ca9574d9abab6f65607df8341df8e69cb621be2272587d159f20dd2f86 |