Jul-12-2020, 02:08 PM
It maybe be a bug with the library but I've never used it so I can't say for certain.
Have you thought about using other libraries? There's a very popular one called youtube-dl. It supports hundreds of sites including youtube. It has command line support as well. There is very many good python tutorials on it. https://www.bogotobogo.com/VideoStreamin...edding.php
The site provides this code:
Have you thought about using other libraries? There's a very popular one called youtube-dl. It supports hundreds of sites including youtube. It has command line support as well. There is very many good python tutorials on it. https://www.bogotobogo.com/VideoStreamin...edding.php
The site provides this code:
# ydl1.py from __future__ import unicode_literals import youtube_dl ydl_opts = {} with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download(['https://www.youtube.com/watch?v=dP15zlyra3c'])You would need to modify it to have user input but that should't be too hard. If you read up on it, there are also many options you can provide like whether you want audio, the output file type and so on.