Anyant, unfav/unstar all and storing your data/cookie local.
蚁阅, 取消所有收藏并备份 json+cookie 文件.
Fork and try to config G_A
& G_P
& G_T
in settings>secerts>actions
. Then it would works weekly well. 😁
Remember to remove my backup file in /data/
path.
2 ways works:
- Clone repo.
- [Recommand] Download
anyant-backup-local.py
&requirement.txt
file in a new directory. Then try with helpful prompt:
$python3 anyant-backup-local.py -h
usage: anyant-backup.py [-h] [-p PASSWORD] account
Anyant Script.
positional arguments:
account input your account
optional arguments:
-h, --help show this help message and exit
-p PASSWORD, -password PASSWORD
password
Check followings code whether comment out or not.
If not, Remember remove config.json
, someone could us cookie do anything.
Notice don't push cookie on network.
f = open('./data/config.json', 'w')
f.write(json.dumps(backup, ensure_ascii=False))
# NOTE: ' to ", via:https://wxnacy.com/2020/05/01/python-print-dict-double-quotation-marks/
f.close()
print('config.json created.')