Coder Social home page Coder Social logo

sacgrover / telegramusic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kernoeb/telegramusic

0.0 0.0 1.0 88 KB

Python Telegram Bot to download music from Deezer and YouTube (Heroku, Docker)

License: Mozilla Public License 2.0

Shell 1.90% Python 94.84% Dockerfile 3.16% Procfile 0.11%

telegramusic's Introduction


Telegramusic

A Telegram bot to download music from Deezer and YouTube

Deploy

Disclaimer

โš ๏ธ For educational purposes only (or for free music)
Please don't use this for illegal stuff.
It's against Deezer's terms of service.

Information

You should probably use Docker way to install the bot, or follow the steps listed in the Dockerfile.
As indicated in the Dockerfile there's a temporary patch to avoid the "FLAC issue" from the deezer download library.

Translations

Your native language is not in the langs.json file ? Just make a pull request or pm me !

Usage

  • Get an arl cookie on Deezer for DEEZER_TOKEN (see this repo)
  • Create a bot on Telegram and grab a token with Bot Father (TELEGRAM_TOKEN)
  • Activate Inline Mode on BotFather for the bot you just created

Search for music in inline mode :

@xxxxxxx_bot (album|track|artist) <search>

image

image

or send a Deezer / YouTube link


Configuration

Docker

Prerequisites

Create a token.env file with the following content, replacing the values with your own tokens :

DEEZER_TOKEN=abcdefghijklmnoxxxxxxxxxxxx
TELEGRAM_TOKEN=123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ
BOT_LANG=fr

Then run :

./update.sh

or directly :

git pull && docker-compose up -d --build

Local usage

  • Add DEEZER_TOKEN and TELEGRAM_TOKEN as variable environment
  • python3.9 -m pip install -r requirements.txt
  • python3.9 main.py

(You should use a venv)

telegramusic's People

Contributors

kernoeb avatar sacgrover avatar adrianpaniagualeon avatar

Forkers

hipworth

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.