Download YouTube videos as mp3 files.
- Docker
- Google API key
- A playlist ID of a public or unlisted YouTube playlist. This is found in the URL like https://www.youtube.com/playlist?list=[playlistId].
- Add
./app/.env
(see./app/.env.sample
) - Bash into the container
docker compose up -d
,docker compose exec php sh
- Install packages
composer install
- Bash into the container
docker compose up -d
,docker compose exec php sh
- Run:
php cli.php fabpico:convert [playlistId]
Your mp3 files will be located in ./data/mp3
.