Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

youtube-dl python get file name

ydl_opts = {
  'format': 'bestaudio',
  'postprocessors': [{'key':'FFmpegExtractAudio'}],
} 

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
  info = ydl.extract_info(uri, download=True)
  filename = ydl.prepare_filename(info)
Source by # #
 
PREVIOUS NEXT
Tagged: #python #file
ADD COMMENT
Topic
Name
3+3 =