Skip to main content

aio-downloader

PyPI Python License

aio-downloader là thư viện Python để parse URL và tải media trực tiếp từ nhiều nền tảng

Install

pip install aio-downloader
playwright install chromium

CLI

aio-down "URL" -P downloads --all -o "%(title)s_%(idx)s.%(ext)s"

Options (tóm tắt)

  • -P, --paths: thư mục lưu
  • -o, --outtmpl: output template
  • --all: tải tất cả media
  • --headful: mở browser UI
  • --no-unlock: tắt unlock
  • --timeout: timeout giây
  • --write-json: ghi JSON cạnh file
  • --quiet: tắt progress

Library

from aio_downloader import DownloadWorker

w = DownloadWorker(allMedias=True, outtmpl="%(title)s_%(idx)s.%(ext)s")
res = w.DownloadSync("URL", "downloads")
print(res.paths)

Progress Hooks

Hook nhận dict trạng thái.

from aio_downloader import DownloadWorker

def Hook(d):
    if d["status"] == "downloading":
        print(d["filename"], d.get("downloaded_bytes"), d.get("total_bytes"))
    elif d["status"] == "finished":
        print("done", d["filename"])

w = DownloadWorker(progressHooks=[Hook])
w.DownloadSync("URL", "downloads")

Docs

License

MIT

Metadata

Release files for aio-downloader-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio-downloader-cli 0.1.0
File Size Uploaded Provenance
aio_downloader_cli-0.1.0.tar.gz 12.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aio-downloader-cli 0.1.0
File Interpreter ABI Platform
aio_downloader_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.1 kB

Release files / aio_downloader_cli-0.1.0.tar.gz

Download URL aio_downloader_cli-0.1.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cbb0246a9066cd964a08bf846f069135dbeb58a1673e0d33ecb9d27c7772d476
BLAKE2b-256 checksum
How to use checksums
1c1ff549254c5f20a741966ada682f66a5d0b1006dce6942370d285a563f75ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / aio_downloader_cli-0.1.0-py3-none-any.whl

Download URL aio_downloader_cli-0.1.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd4db559de713388a939c89c59bc157bbdf8591e15879b4876b755739d29b697
BLAKE2b-256 checksum
How to use checksums
26afdfb347e3b2058390c2ad937b938e4c5adf3ccf19bbb9f0e2d9211a117a49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for aio-downloader-cli 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page