Current collected state Current
Observed since 21 Oct, 11:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
aio-downloader-cli
Downloader wrapper
aio-downloader là thư viện Python để parse URL và tải media trực tiếp từ nhiều nền tảng
pip install aio-downloader
playwright install chromium
aio-down "URL" -P downloads --all -o "%(title)s_%(idx)s.%(ext)s"
-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 progressfrom aio_downloader import DownloadWorker
w = DownloadWorker(allMedias=True, outtmpl="%(title)s_%(idx)s.%(ext)s")
res = w.DownloadSync("URL", "downloads")
print(res.paths)
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")
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
requestsEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | requests>=2.31.0 | runtime |
playwrightEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | playwright>=1.40.0 | runtime |
bdist_wheel · 13.13 KB · Python py3
sdist · 12.35 KB · Python source
Observed since 21 Oct, 11:49 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:aaa2201bb2665f5db2fd46e05611ef2d883fc5e14f9446b3737c2139ea2c936a