a new youtube_dl
Project description
Pytdl Python的YTDL!
目前簡化為四種功能~~
方法 | 傳回參數 |
---|---|
songList(query : str, size : int = 12) |
List[dict] |
searchList(list_id : str) |
List[str] |
songs(querys : List[str]) |
List[songList] |
info(url : str) |
Song or SongList |
songList 回傳的結構為
[{
"id": str,
"title": str,
"thumbnail": list,
"length": str
}, ...]
searchList 回傳的結構為
[str, ...]
songs 回傳的結構為
[songList(), ...]
info 回傳的結構為
[Song() | SongList(), ...]
Song 與 SongList 要使用 create 創建其結構 (async func)
SongList 創建後的 SongList.songs 為一個 list
from NPytdl import Pytdl
ydl = Pytdl()
song = ydl.info("https://youtu.be/RGtSdbjxVKU")
import asyncio
asyncio.run(song.create())
song.download(f"./test/{song.title}")
這樣就能下載這首歌
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 Distribution
NPytdl-0.3.2.2b2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for NPytdl-0.3.2.2b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abaaca9f955e90ca9c3c1864dd957809cbc8848027b36d447acbe2299b0af1c6 |
|
MD5 | 27ef2d2c70cad0f096ee8d5bc5c4486b |
|
BLAKE2b-256 | 6f350e119cb90d901a27f64e8580c19724f3cf4cef3f38ebd16ab2e62c74952b |