Skip to content

Commit aa0e953

Browse files
authored
Added YouTubeAudioDownloader.py
1 parent ce7e971 commit aa0e953

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pafy
2+
3+
url = "insert_url_to_youtube_video_here"
4+
5+
video = pafy.new(url)
6+
7+
print("_________VIDEO__DETAILS_________")
8+
print("Title:", video.title)
9+
print("Rating:", video.rating)
10+
print("View Count:", video.viewcount)
11+
print("Author:", video.author)
12+
print("Length:", video.length)
13+
14+
#Selects the audio stream with the highest bitrate.
15+
bestaudio = video.getbestaudio()
16+
bestaudio.download()

0 commit comments

Comments
 (0)