Ver código fonte

Add YouTube channel listing script

master
JustAnotherArchivist 2 anos atrás
pai
commit
0044281b9d
1 arquivos alterados com 9 adições e 0 exclusões
  1. +9
    -0
      youtube-channel-list.py

+ 9
- 0
youtube-channel-list.py Ver arquivo

@@ -0,0 +1,9 @@
import sys
import yt_dlp


with yt_dlp.YoutubeDL({'quiet': True}) as ydl:
ie = ydl.get_info_extractor('YoutubeTab')
for url in sys.argv[1:]:
for entry in ie.extract(url)['entries']:
print(entry['id'])

Carregando…
Cancelar
Salvar