ソースを参照

Add YouTube channel listing script

master
JustAnotherArchivist 2年前
コミット
0044281b9d
1個のファイルの変更9行の追加0行の削除
  1. +9
    -0
      youtube-channel-list.py

+ 9
- 0
youtube-channel-list.py ファイルの表示

@@ -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'])

読み込み中…
キャンセル
保存