Backup your Zhihu contents before quitting Zhihu.
Project description
退乎前备份知乎回答:zhihubackup
每个知乎答主都有退乎的梦想,但退乎前如果删光回答,则十分可惜。因此,我用Python写了60行的脚本,可以在退乎前备份自己的所有回答和文章,以免事后后悔。
安装
pip install zhihubackup[node]
如果已安装Node.js,则可以去掉[node]。
使用
假如你是@贱贱,你的id是splitter,那么可以执行命令:
zhihubackup 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.1.tar.gz
(16.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zhihubackup-0.2.1.tar.gz.
File metadata
- Download URL: zhihubackup-0.2.1.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e55d07864775b6367ff23fa56fe86445756a7a25b51ee3cdf896adae8f3eed
|
|
| MD5 |
ca33d68e1e80ad0e33495b0310dd11f3
|
|
| BLAKE2b-256 |
d1651afc63498b3ef218d285239bf36fd677d55c9d4b0781f003552d09a21d31
|
File details
Details for the file zhihubackup-0.2.1-py3-none-any.whl.
File metadata
- Download URL: zhihubackup-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.0 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 |
b1a6200de31d828c0c4afd312191603b515266c53ae053a1b4a6ee1c4961545a
|
|
| MD5 |
a5ff9225eab30616aa86f76414e3b8ed
|
|
| BLAKE2b-256 |
b2c1e62029df8792df2719fbba8648c0d9aa1d1332c1b916fa7cfbb53bdea1ce
|