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(), ...]
from NPytdl import Pytdl
ydl = Pytdl()
song = ydl.info("https://youtu.be/RGtSdbjxVKU")
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.tar.gz
(4.2 kB
view hashes)
Built Distribution
NPytdl-0.3.2-py3-none-any.whl
(4.7 kB
view hashes)