Pyxk
pyxk install
$ python -m pip install pyxk
pyxk.client
from pyxk.client import Client, Response
class Download(Client):
start_urls = [
("http://www.baidu.com", {"title": "百度", "index": index})
for index in range(2)
]
async def parse(self, resp: Response, **kwargs):
print(resp.status, kwargs)
if __name__ == "__main__":
Download.run()
>>> status_code: 200 {'title': '百度', 'index': 1}
>>> status_code: 200 {'title': '百度', 'index': 0}
pyxk.m3u8
from pyxk.m3u8 import load_m3u8
load_m3u8("https://xxx.xxx", output="xxx.mp4")
$ m3u8 --help
Usage: m3u8 [OPTIONS] <M3U8_URL>
M3U8资源下载器
Options:
-c, --content TEXT M3U8内容 or 文件路径
-o, --output TEXT M3U8存储路径(默认当前工作目录)
--no-verify 请求验证
-h, --headers <TEXT TEXT>... Http headers
-ua, --user-agent TEXT 输入user_agent系统类型, 进行自生成[ios,
mac,android,windows,linux]
-r, --reload 重载m3u8资源[每次请求网络资源 会在本地生成文件,默认
使用本地文件]
--no-del 保留m3u8资源[下载完成后默认删 除m3u8文件以及ts
文件]
-l, --limit INTEGER aiohttp.limit
-s, --semaphore INTEGER asyncio.Semaphore
--help Show this message and exit.
# use m3u8 url download
$ m3u8 https://xxx.m3u8 -o xxx.mp4
# use m3u8 file download
$ m3u8 -c index.m3u8 -o xxx.mp4
Metadata
Release files for pyxk 0.7.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyxk-0.7.4.tar.gz | 35.4 kB | Without provenance | Details for pyxk-0.7.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyxk-0.7.4-py3-none-any.whl | Python 3 | none | any | Details for pyxk-0.7.4-py3-none-any.whl |
Total release size: 79.4 kB
Release files / pyxk-0.7.4.tar.gz
| Download URL | pyxk-0.7.4.tar.gz |
|---|---|
| Size | 35.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef9e8806de9275d58aee2eaa40ffc9de54a65523d9692b70caa6e036ed5eb682
|
|
BLAKE2b-256 checksum How to use checksums |
c066380bc9c1218fe44427a3a4990943710a717068cdc6a6bde89bf86665bbeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / pyxk-0.7.4-py3-none-any.whl
| Download URL | pyxk-0.7.4-py3-none-any.whl |
|---|---|
| Size | 44.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4e42a3c058d6b0489f526ff849f081af3f1bf34dd89e4364f59862b55fe081f
|
|
BLAKE2b-256 checksum How to use checksums |
dfeae089ea5990c6b17dabf7cb8e0599a505e442dee7b7381720d67e844c30e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for pyxk 0.7.4
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.