DEV Community

Discussion on: How to Download YouTube videos in Python.

Collapse
 
rafaelrrs profile image
RAFAEL RODRIGUES DA SILVA

Bem simples de usar. Funcionou comigo dessa forma:

import pytube

url = 'youtube.com/watch?v=xva71wynxS0'
youtube = pytube.YouTube(url)
video = youtube.streams.first()
video.download()