Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 1, 2022 12:00 am GMT

Criando um Downloader de MP3 - Python

Primeiro voc ter que instalar a biblioteca pytube se no estiver instalado.

pip install pytube3 -U

Criao do Downloader:

  • importar a biblioteca pytube.
from pytube import YouTube
  • Criar as funes do downloader.
link = input('Insira a url: ')yt = YouTube(link)msc = yt.streams.get_by_itag(140)msc.download()print('Download feito com sucesso!')

Cdigo completo:

from pytube import YouTubelink = input('Insira a url: ')yt = YouTube(link)msc = yt.streams.get_by_itag(140)msc.download()print('Download feito com sucesso!')

Referncias:
https://github.com/hbmartin/pytube3


Original Link: https://dev.to/otecnicoeminfo/criando-um-downloader-de-mp3-python-23ai

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To