蓝奏云API逆向
蓝奏云是一个很小众的网盘工具,少有的不对存储总量和下载速度作限制的网盘。
这个Python包实现对文件的上传、创建分享、设置密码、获取下载直链等功能。
使用方式:
- 网址登陆,获取三个cookie信息:
PHPSESSID、phpdisk_info、ylogin;
- 导入
LanZouApi和LanZouCookie两个类,传入获取到的cookie,进行实例化;
from zibuyu_lanzou import LanZouApi, LanZouCookie
cookie = LanZouCookie(
PHPSESSID="xxx",
ylogin="xxx",
phpdisk_info="xxx",
)
handler = LanZouApi(cookie)
之后就可以使用 handler 对象进行操作。
如果你有一个蓝奏云的分享链接,只是想单纯地获取下载直链,也可以使用 get_direct_download_url方法:
from zibuyu_lanzou import get_direct_download_url
response = get_direct_download_url(
share_url='https://wwib.lanzoul.com/iQ6S62egfmvg',
password='vArk'
)
print(response) # 该文件的下载直链
Metadata
Release files for zibuyu-lanzou 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zibuyu_lanzou-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for zibuyu_lanzou-0.0.1-py3-none-any.whl |
Release files / zibuyu_lanzou-0.0.1-py3-none-any.whl
| Download URL | zibuyu_lanzou-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c8802576de897787aae15a7542dc083a074e073025380c76ab53b00291824a2
|
|
BLAKE2b-256 checksum How to use checksums |
b0faf6aa01d3b50e4fd497af6d653bd24649cec22c6593f3767c017853d071c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.0
|
Security for zibuyu-lanzou 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.