Skip to content

lxzmads/zsxqbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZSXQ-BackUp

知识星球备份,星球/话题/评论/图片/文件。

api version v2

Usage

  1. 安装 chromedriver

仅用于自动登录,如果你愿意自己抓包,则不需要安装

  • brew install chromedriver
  • 或前往官网/镜像下载
    • 将包含可执行文件的目录添加至环境变量
    • 或设置settings.py/CHROME_DRIVER_PATH为完整执行路径
  1. 安装 ZSXQ-BackUp
git clone git@github.com:lxzmads/zsxqbackup.git
cd zsxqbackup
mv zsxq/settings.exammple.py zsxq/settings.py
pyenv shell python3.6.9
pip install -r requirements.txt
  1. 运行
  • scrapy crawl backup
  • 手动指定tokenUser-Agent
    • 浏览器端登录后抓包获取cookies中的zsxq_access_tokenUser-Agent字段
    • zsxq/settings.py末尾将其设置为ZSXQ_ACCESS_TOKENZSXQ_USER_AGENT

Reference

About

知识星球备份工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages