import os
#os.system('pip install pytube')
from pytube import YouTube
url = input('URL Girin: ') #"https://www.youtube.com/watch?v=u2N7p6DwlSk"
video = YouTube(url)
print('Title:', video.title)
print('Downloading...')
out_path = video.streams.filter(only_audio = True).first().download()
new_name = os.path.splitext(out_path)
os.rename(out_path, new_name[0]+'.mp3')
print('Done...')