Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsoosk/TelegramSpotifyDownloader
This is a simple bot to download Spotify songs via url from youtube musics.
https://github.com/gsoosk/TelegramSpotifyDownloader
Last synced: 3 months ago
JSON representation
This is a simple bot to download Spotify songs via url from youtube musics.
- Host: GitHub
- URL: https://github.com/gsoosk/TelegramSpotifyDownloader
- Owner: gsoosk
- Created: 2020-01-22T18:36:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T07:16:10.000Z (about 2 years ago)
- Last Synced: 2024-06-28T14:34:34.571Z (5 months ago)
- Language: Python
- Size: 1.58 MB
- Stars: 95
- Watchers: 3
- Forks: 106
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TelegramSpotifyDownloader
## What is it?
This is a simple bot to download songs from YouTube in an MP3 format by using Spotify's HTTP link.You can download:
* A single song
* Albums
* Playlists
* Artists## How to run?
At first, you should add your bot token to a `.env` file with `TELEGRAM_TOKEN` key.
Then install requirements:
```
pip install requirements
sudo snap install ffmpeg
npm install -g spotify-dl
```and you can run program with this command:
```
python main.py
```
## Authentication
For a simple authentication you can enable it in config file by setting `ENABLE` to `true`. You also should set `PASSWORD` which users can authentican with. Bot uses config file to save users also.## Downloader
This bot can use one of bellow spotify downloaders to download the song/album/playlist. You should select one of them in the config file.
* [SpotDL(Python)](https://github.com/spotDL/spotify-downloader)
* [SpotifyDL(JS)](https://github.com/SwapnilSoni1999/spotify-dl)_NOTE: spotdl has released a new version(3) which has so many bugs and is unreliable. Therefore, I recommend spotify-dl._
## Docker
Simply build the docker file and then run it## Deploy manually on Heroku
To deploy on heroku:1. Change `config.json` if you want and commit it
2. Put your bot token to a `.env` file with `TELEGRAM_TOKEN` key
3. Run `./heroku_deploy.sh`## TODO
- [x] Update Dockerfile
- [ ] Add Progress Bar