Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 0053379

Browse files
committed
YouTube Audio Download
1 parent 9ca990f commit 0053379

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed
4.8 MB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Python script that provides the download and upload speed of your Wifi
2+
A simple Python script that uses 'pafy' library to download audio from YouTube URLs of that particular video.
3+
4+
### Prerequisites
5+
You will need to install pafy library and also youtube-dl library too. You can use commands which are visible in Screenshot.png.
6+
7+
### How to run the script
8+
First you have to go to the 'YouTube Audio Download' directory. Run the following command once you are in project directory
9+
10+
```cd Scripts/Miscellaneous/YouTube Audio Download```
11+
12+
For Python 3: ```python3 YouTubeAudio.py```
13+
14+
### Screenshot/GIF showing the sample use of the script
15+
![Screenshot](Screenshot.png)
16+
17+
## *Author Name*
18+
Adesh Choudhar
561 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Importing pafy library
2+
import pafy
3+
4+
# Taking url as input from the user
5+
url = input("Enter URL: ")
6+
7+
# Creating a video instance
8+
video = pafy.new(url)
9+
10+
# Using 'bestaudio()' to select the best audio file
11+
bestaudio = video.getbestaudio()
12+
13+
# Using 'download()' to download the selected audio file
14+
bestaudio.download()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pafy==0.5.5
2+
youtube-dl-2020.9.20

0 commit comments

Comments
 (0)