Datasets:
File size: 274 Bytes
7beabae |
1 2 3 4 5 6 7 8 9 10 |
import subprocess
video_urls = []
with open("channel_urls.txt", "r") as f:
channel_urls = f.readlines()
for channel_url in channel_urls:
command = ["yt-dlp", "--flat-playlist", "--print-to-file", "webpage_url", "urls.txt", channel_url]
subprocess.run(command) |