Skip to content

Sergimayol/local-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local audio downloader

This is a simple project to download audio from a youtube video and convert it to mp3 using yt-dlp, ffmpeg and streamlit.

Prerequisites

How to use

  1. Clone this repository
git clone https://github.com/Sergimayol/local-downloader.git
  1. Install the requirements
pip install -r requirements.txt
  1. Run the app
streamlit run src/app.py
# or
python -m streamlit run src/app.py
  1. Access the app in your browser at http://localhost:8501

Note: That this project is meant to be used locally, so it doesn't have any kind of security, so don't use it in a public server. If you don't want the UI, you can use the scripts/download-audio.sh script and pass the video url as an argument, it also needs the ffmpeg binary to be in the path and the yt-dlp python package installed.

Run with docker

  1. Clone this repository
git clone https://github.com/Sergimayol/local-downloader.git
  1. Build the image
docker build -t local-downloader .
  1. Run the container
docker run -p 8501:8501 local-downloader

License

This project is licensed under the MIT License - see the LICENSE file for details.