Giter Site home page Giter Site logo

youtube_audio_extractor's Introduction

Youtube Audio Extractor

This is a simple Python application that allows you to extract the audio from a Youtube video and save it as an mp3 file.

Features

  • Extract audio from Youtube videos using the pytube library
  • Create a GUI for the application using tkinter library
  • Use os library to create a directory to save the audio file
  • Use sys library to exit the application
  • Use time library to get the current time
  • Use pydub library to convert the audio to mp3 format

Requirements

  • Python 3.6 or later
  • pytube3 library
  • pydub library
  • ffmpeg

Usage

  1. Clone the repository
git clone https://github.com/<username>/youtube-audio-extractor.git
  1. Install the required libraries
pip install -r requirements.txt

(Alternatively, I use poetry to get dependencies from poetry.lock and creating a virtual environment)

  1. Run the application
python main.py
  1. Enter the Youtube video url in the text box
  2. Select the directory path to save the audio file (or use the default directory path)
  3. Click the "Extract audio" button
  4. The extraction and conversion process will be displayed in the console.
  5. If the extraction and conversion are successful, the message "The audio file has been saved successfully!" will be displayed in the title label.
  6. If the extraction and conversion are not successful, the message "Error, the audio file has not been saved!" will be displayed in the title label.
  7. Click the "Exit" button to close the application

Note

  • The application requires internet connection to extract audio from Youtube video.
  • The application uses ffmpeg for audio conversion, so you need to have ffmpeg installed on your machine.

youtube_audio_extractor's People

Contributors

toaster-code avatar

Stargazers

João Ribeiro avatar

Watchers

 avatar

youtube_audio_extractor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.