Home
Softono

Python Vistopia

Open source MIT Python
45
Stars
12
Forks
1
Issues
2
Watchers
6 months
Last Commit

 About Python Vistopia

看理想 Python 客户端 / 下载器,下载看理想的音频和文稿

Platforms

Web Self-hosted

Languages

Python

Links

Need Help Installing Python Vistopia?

We provide expert installation service for this software. Our team will install, configure, and secure Python Vistopia on your server. plans start at just $30.

Python Vistopia

View on GitHub

python-vistopia

看理想命令行客户端 / 下载器

codecov License: MIT

用法

安装

pip3 install .

运行

需自行通过抓包获取 API 令牌(token)。部分开放节目(如《八分》)无须令牌。

执行以下命令运行:

python3 -m vistopia.main --token [token] [subcommand]

子命令目前支持:

  • search: 搜索节目
  • subscriptions: 列出所有已订阅节目
  • show-content: 节目章节信息
  • save-show: 保存节目至本地,并添加封面和 ID3 信息
  • save-transcript: 保存节目文稿至本地

可选:使用 SingleFile 保存完整文稿网页

  1. 下载 SingleFile CLI 命令行程序
  2. 浏览器登陆网页版看理想,使用 cookie 导出工具(如:EditThisCookie)导出 json 格式的 cookies,并保存为本地文件
  3. 运行 save-transcript 命令,并传入 --single-file-exec-path--cookie-file-path 参数(不传则按默认方式保存文稿)

命令格式:

python3 -m vistopia.main --token [token] save-transcript --id [id] \
    --single-file-exec-path=/path/to/local/single-file \
    --cookie-file-path=/path/to/vistopia.cookie

不足

目前不支持 API 签名。

源代码开源授权

采用 MIT 开源授权