Skip to main content

a new youtube_dl

Project description

Pytdl Python的YTDL!


目前有八種功能~~

方法 傳回參數
songList(size, url) list
getAll(url) dict
getVideo(url) dict
getAudio(url) dict
getAllList(list_url) dict
getVideoList(list_url) dict
getAudioList(list_url) dict
download(stream, path) none

Video 和 All 的相關功能會回傳影片資訊 Audio 則不會 Video/Audio 皆有的屬性有:

  • stream
  • url
  • title
  • id

List 的相關功能是以個別影片的 ID 為 Key, 可以用以下方法獲得

for id in List:
  print(List[id])

songList(size, url)

a = await ydl.songList(12, "...")
print(a[0]) 
"""
{"id": ..., "title": ..., "thumbnail": ..., "length": ...}
"""

Project details


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.1.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

NPytdl-0.1.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page