Skip to content

Fix download audio #323 #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Download Audio/Download Audio.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import pytube
from moviepy.editor import *
import pytubefix as pytube
from moviepy import *

# Define the YouTube video URL
youtube_url = "https://www.youtube.com/watch?v=E6eKvji_BoE"
Expand All @@ -20,4 +20,4 @@
# Clean up the temporary file
os.remove(temp_file)

print("Audio extracted and saved as MP3 file to", mp3_file)
print("Audio extracted and saved as MP3 file to", mp3_file)
2 changes: 1 addition & 1 deletion Download Audio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This is a python script that downloads audio files directly from youtube videos.
This script is written in Python language. So make sure you have python installed in your computer. Two modules of python are used in this script to install those follow below steps
1. Open cmd prompt
2. write "pip install moviepy"
3. write "pip install pytube"
3. write "pip install pytubefix
## 🌟 How to run
<!--Remove the below lines and add yours -->
- Open the Download Audio.py script
Expand Down