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.2b3.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for NPytdl-0.3.2.2b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0a38f1bd5b665aeca942f4059a5bd95a585d8a7a1066a7905451bd61b73dca0 |
|
MD5 | bfb17a16029365643c8846b88dd3e17e |
|
BLAKE2b-256 | ced9ee842a0897c1608de21e20356cf4c62f098125746afcb6bb2bde19686115 |