I am using the simplest possible code to download bunch of youtube videos:
from pytube import YouTube
link=[
"https://www.youtube.com/watch?v=Rb9CjDjqNC4",
"https://www.youtube.com/watch?v=pmmKCDvsFy8",
"https://www.youtube.com/watch?v=erN1_QVCCM8",
"https://www.youtube.com/watch?v=fjzM3NbgGzE",
"https://www.youtube.com/watch?v=JWBiY29GqRs",
"https://www.youtube.com/watch?v=vp7zMFrHkmA"
]
for i in link:
s = YouTube(i)
print(i)
s.streams.filter(res="720p",mime_type="video/mp4").first().download()
But "strangely" videos don't have the sound. When I remove filter sound is there, why? I've looked online, but couldn't find any example that shows how to do it, maybe you can help?
Thanks, Dejan