子不语个人工具包-蓝奏云API调用
Project description
蓝奏云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) # 该文件的下载直链
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for zibuyu_lanzou-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c8802576de897787aae15a7542dc083a074e073025380c76ab53b00291824a2 |
|
MD5 | 0cc29f49a8bde72384833d00b74da82f |
|
BLAKE2b-256 | b0faf6aa01d3b50e4fd497af6d653bd24649cec22c6593f3767c017853d071c8 |