Add all files

This commit is contained in:
2025-09-29 13:52:46 +00:00
parent 137b5f2b51
commit 8edfb40df3
11 changed files with 1756 additions and 0 deletions

18
download_youtube.py Normal file
View File

@@ -0,0 +1,18 @@
from __future__ import unicode_literals
import yt_dlp
import sys
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '0', # 0 = best quality
}],
}
url = sys.argv[1]
print("Downloading youtube song " + url)
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
ydl.download([url])