A bot will get music metadata
from spotify and download actual song from YouTube Music (Quality: 128kbps). Yeah, I know quality kinda sucks.
-
update and upgrade packages
sudo apt update && sudo apt upgrade -y
-
install some required packages
sudo apt -y install docker.io git
-
clone the repo go to working dir
git clone https://github.com/xarzoa/music-downloader cd music-downloader
-
create
.env
filesudo nano .env
add,
TOKEN
- telegram bot token from botfather*ID
- spotify client id* from spotify developersSECRET
- spotify client secret* from spotify developersDUMP
- channel for collect user ids*RFT
- Spotify refresh token from srt generator
*all those envs are required.
-
build docker image
sudo docker build . -t spotbot
-
run the container
sudo docker run spotbot
that's it. you just deployed your own bot that downloads music for ya.
- this will never ban your spotify account. but there's rate limit on requesting metadata, watch out.
- prs are welcome.
- there maybe too many bugs. i just made this within 3hours :l
- enjoy :d
- forgot to add license, but stealing never makes you programmer biiiitch
- the owners of all the packages i used on this.