Go to file
Clarth e34257e97c Update README.md 2025-02-16 16:09:30 -05:00
README.md Update README.md 2025-02-16 16:09:30 -05:00
screenshot.png Screenshot 2023-11-13 23:16:57 -05:00
start.py Update start.py 2025-02-16 16:07:28 -05:00

README.md

Set Up Guide

  1. Create a python virtual environment

python3 -m venv /absolute/path/to/venv

  1. Install depends in venv

/absolute/path/to/venv/bin/pip install spotdl

/absolute/path/to/venv/bin/pip3 install pyTelegramBotAPI requests beautifulsoup4 spotdl

  1. Edit start.py with correct telegram API token and change directories variables.

  2. Start the script /absolute/path/to/venv/bin/python start.py

Unit file

[Unit]
Description=tg_spotdl
After=network-online.target

[Service]
User=nobody
ExecStart=/absolute/path/to/venv/bin/python /absolute/path/to/start.py
Restart=always
RestartSec=5s
RuntimeMaxSec=12h

[Install]
WantedBy=multi-user.target

Start Script

#!/bin/bash
/absolute/path/to/venv/bin/python /absolute/path/to/start.py
exit

Usage

  1. Private message your bot.
  2. Type /start in the PM
  3. The bot will ask for the artist url. It will look something like this https://open.spotify.com/artist/lajs7ahska91187skas
  4. Bot auto gets the artist name.
  5. Wait, the bot will let you know when it's done and ready for another artist.

https://github.com/eternnoir/pyTelegramBotAPI