Browse Source

Add YouTube channel listing script

master
JustAnotherArchivist 2 years ago
parent
commit
0044281b9d
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      youtube-channel-list.py

+ 9
- 0
youtube-channel-list.py View File

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

Loading…
Cancel
Save