diff --git a/youtube-channel-list.py b/youtube-channel-list.py new file mode 100644 index 0000000..8761d9f --- /dev/null +++ b/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'])