GithubHelp home page GithubHelp logo

deezspot_bot's Introduction

DeezSpot_bot

Disclaimer

  • I am not responsible for the usage of this program by other people.
  • I do not recommend you doing this illegally or against Deezer's terms of service.
  • This project is licensed under CC BY-NC-SA 4.0
  • PYTHON VERSION SUPPORTED

    Python >= 3.9

  • OS Supported

    Linux Support macOS Support Windows Support

SET UP

Configurations

bot_settings.py

Go and modify bot_settings.py

Image

  • Read the code comments
  • Add your chat_id to root_ids
  • Modify the bunker_channel variable with your channel id (the others one are optional, but suggested. YES you should create 3 channels :))
  • Be sure that in the channel you have setted the bot as admin, you have setted the right permissions and you added as admin also your user bot(personal account) as admin in the channel ALSO IT WON'T WORK
  • If you don't know how to get chat id send messages to him @JsonDumpBot

.deez_settings.ini

Go and modify .deez_settings.ini

  • mail, password, token(arl) are deezer credentials used for login
  • the pyrogram api_id & api_hash can be created here
  • for create a telegram bot look here
  • for acrcloud key, secret, host look at acrcloud (NOW YOU CAN LEAVE HOST VAR EMPTY IF YOU DON'T WANT TO USE IT)

.set_configs.py

Go and modify set_configs.py

If you don't want to login with arl, which expire, log with normal credentials & delete line 35

INSTALLATION WITH DOCKER

Be sure you made all the configurations as explained above

Let create a volume

docker volume create deezspot_disk

Build the image

docker build -t deezspot .

Run the container

docker run -v deezspot_disk:/app --rm -it deezspot bash
python deez_bot.py

OR

docker run -v deezspot_disk:/app --rm -it deezspot python deez_bot.py

Detach the container

Press (CTRL + P) + (CTRL + Q) as explained here https://stackoverflow.com/questions/19688314/how-do-you-attach-and-detach-from-dockers-process

Attach the container

docker attach <container_id> # you can find it with docker ps

INSTALLATION NORMAL

Let create a own env

pip install virtualenv

To install it just type this command

git clone https://github.com/An0nimia/DeezSpot_bot.git && cd DeezSpot_bot && virtualenv bot_env && source bot_env/bin/activate && pip3 install -r req.txt

START IT

First method

python3 deez_bot.py

OR

If you know how tmux works

tmux new -s deez_bot

then when you are inside just type

python3 deez_bot.py 1

deezspot_bot's People

Contributors

an0nimia avatar cyanbook avatar destroyer-32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deezspot_bot's Issues

quality settings and current release

hi!

i have a question regarding your awesome (!) bot.
is there a way to set the quality to a different value than MP3_320 ? (eg. FLAC?)

how can i run the latest version of your bot? i just started using it from within telegram (Music Hunters) and was wondering if i am automatically using the latest version, as i saw some buttons in this repository's code which i did not see in the teelgram bot.

thank!

"too big to be sent"

Thx for the bot!
But,
the new limit on size/length is ruining all the fun.

Can we have it raised or removed completely?

Screen Shot 2019-04-23 at 21 54 11

sqlite3.OperationalError: unable to open database file

Should I use absolute path for db too? (but I cant find the db file, or is it not created?

Traceback (most recent call last):
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/deez_bot.py", line 5, in <module>
    check_config_bot()
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/utils/utils.py", line 230, in check_config_bot
    initialize_db()
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/helpers/db_help.py", line 38, in initialize_db
    con = db_connect(db_name)
sqlite3.OperationalError: unable to open database file

Change Send Music

Hello, I really like your bot, it's incredible, what I want to know is if it can be changed so that the music is sent by the bot to bunker_channel.

I tried several ways and none could make it do it.

Thank you very much in advance and sorry for the inconvenience.

I consult because telegram bans my account every day.

file_id = SetConfigs.tg_user_api.send_audio( chat_id = bunker_channel, audio = c_path, thumb = io_image, duration = duration, performer = performer, title = title, file_name = file_name )

Because it sends the music with the username of the owner of the api.

Thank you for your work.

No module named 'spotipy'

I have Spotipy installed already but still I am getting this error
./dwsongs.py
Traceback (most recent call last):
File "./dwsongs.py", line 7, in
import spotipy
ModuleNotFoundError: No module named 'spotipy'

is having Spotify or pyrogram neccassary?

Spotify is blocked in my region and I only need deezer, is it necessary to input my Spotify credential since it would return 403 or 404 page.

Also I have a bot which i created using BotFather why should I get a application id from telegram when Bot Token would suffice?

\info command went wrong

2020-05-14 10:49:37,824 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/home/####/.local/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 343, in process_update
handler.handle_update(update, self, check, context)
File "/home/####/.local/lib/python3.6/site-packages/telegram/ext/handler.py", line 119, in handle_update
return self.callback(update, context)
File "dwsongs-normal.py", line 1487, in menu
statisc(chat_id, "TRACKS")
TypeError: %d format: a number is required, not str

what exactly happened ?

python3.9 configparser raise KeyError(key)!!

After i try to run the app, when it tries to check config file using check_config_file(config) function, program encounters an exception.

I checked the code below, if my config is wrong it should print something but it's throwing an exception.

if not "arl" in config['deez_login']:
		print("Something went wrong with the login token in the configuration file")
		exit()

My Exception:

hesam@zeus:~$ python3.9 /home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/deez_bot.py
1): TEST MODE
2): COOL MODE
3): TEST MODE (NO ZIP)
4): COOL MODE (NO ZIP)
How to use it?: 3
Traceback (most recent call last):
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/deez_bot.py", line 8, in <module>
    from configs.set_configs import SetConfigs
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/configs/set_configs.py", line 14, in <module>
    check_config_file(config)
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/utils/utils.py", line 44, in check_config_file
    if not "arl" in config['deez_login']:
  File "/usr/lib/python3.9/configparser.py", line 960, in __getitem__
    raise KeyError(key)
KeyError: 'deez_login'

System:
Python 3.9.5
Operating system | Ubuntu Linux 20.04.3

Lyrics at lower quality

Can you add the possibility to add lirycs to lower quality songs?
Lyrics are only applied on FLAC files

Not Working

yesterday it worked but today I can't get the bot to respond.

I need help with the setup

Hey, I have in the set_configs.py all the important data like arl token, email, password
when I try to start the bot with the following command: python3 deez_bot.py

I get the following error

error

can someone help me fix the problem?

Low quality (.ogg audio)

It has come to notice that deez bot no longer provide .mp3 format with 320kb/s audio quality but it now comes in .ogg with ~160kb/s :(

Bot Not Sending Zip Files

I dont know if it has been included or not but can someone teach me how bot can send zip files of albums

No module named Telegram

Traceback (most recent call last):
File "/root/DeezloaderBIB_bot/deez_bot.py", line 4, in
from telegram import ParseMode
ModuleNotFoundError: No module named 'telegram'

TypeError: 'type' object is not subscriptable

I cant run the program.

when I try to run with python 3.9 the is my error

Traceback (most recent call last):
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/deez_bot.py", line 3, in <module>
    from utils.utils import check_config_bot, show_menu
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/utils/utils.py", line 11, in <module>
    from deezloader.spotloader.spotify_settings import qualities as spo_qualities
  File "/home/hesam/.local/lib/python3.9/site-packages/deezloader/spotloader/__init__.py", line 5, in <module>
    from librespot.core import Session
ModuleNotFoundError: No module named 'librespot'

even though, librespot is installed.

hesam@zeus:/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot$ python3.9 -m pip install librespot
Requirement already satisfied: librespot in /home/hesam/.local/lib/python3.9/site-packages (0.0.0)
Requirement already satisfied: pycryptodome in /home/hesam/.local/lib/python3.9/site-packages (from librespot) (3.13.0)
Requirement already satisfied: protobuf in /home/hesam/.local/lib/python3.9/site-packages (from librespot) (3.19.3)
Requirement already satisfied: requests in /home/hesam/.local/lib/python3.9/site-packages (from librespot) (2.25.0)
Requirement already satisfied: defusedxml in /home/hesam/.local/lib/python3.9/site-packages (from librespot) (0.7.1)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests->librespot) (2.8)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3/dist-packages (from requests->librespot) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->librespot) (2019.11.28)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/hesam/.local/lib/python3.9/site-packages (from requests->librespot) (1.26.8)
hesam@zeus:/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot$

and when it is run with python3.8 I get this error

Traceback (most recent call last):
  File "deez_bot.py", line 3, in <module>
    from utils.utils import check_config_bot, show_menu
  File "/home/vlaw/tlgrmBot/deezspot/DeezloaderBIB_bot/utils/utils.py", line 9, in <module>
    from deezloader.libutils.utils import var_excape
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/__init__.py", line 3, in <module>
    from .__dee_api__ import API
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/__dee_api__.py", line 6, in <module>
    from .__utils__ import artist_sort, convert_to_date
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/__utils__.py", line 5, in <module>
    from .models.track import Track
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/models/__init__.py", line 3, in <module>
    from .smart import Smart
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/models/smart.py", line 4, in <module>
    from .album import Album
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/models/album.py", line 5, in <module>
    class Album:
  File "/home/hesam/.local/lib/python3.8/site-packages/deezloader/models/album.py", line 19, in Album
    def tracks(self) -> list[Track]:
TypeError: 'type' object is not subscriptable

Invalid credentials but they're valid

Titile explin this, this is the error:

Traceback (most recent call last):
  File "./dwsongs.py", line 767, in <module>
    downloa = deezloader.Login(setting.username, setting.password)
  File "/usr/local/lib/python3.5/dist-packages/deezloader/__init__.py", line 62, in __init__
    raise BadCredentials("Invalid password or username")
deezloader.BadCredentials: Invalid password or username

what can i do?

Ar cloud

How do we setup arcloud project, in specific which project we have to make?

Spotify URL Issues, Error I get At The console

Traceback (most recent call last):
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "dwsongs-normal.py", line 364, in Link
link = what_kind(link)
File "/usr/local/lib/python3.6/site-packages/deezloader/utils.py", line 275, in what_kind
url = request(link).url
File "/usr/local/lib/python3.6/site-packages/deezloader/utils.py", line 61, in request
thing = get(url, headers = header)
File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 528, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 466, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 316, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'Powered By TeleFeed': No schema supplied. Perhaps you meant http://Powered By TeleFeed?

Lyrics

Can you please add the ability to download lyrics from Spotify

Speed of bot

There is a huge difference between the new code of deezloader and the old code. I deployed this new code and took around 1 hr for the same playlist of 50 songs which got downloaded in about 20 minutes in old bot. Both bots were tested on same server. Is it same for you is there anything that I am doing wrong . Please suggest something to fix this issue

Consultation

Hello. Previously I used this repository and I want to know if they are going to update it. It seems to me an incredible bot, thanks in advance.

Banned

I've suddenly get banned from the bot why:)
How to get red of it and until when I have to wait to use the bot again!

acr wont recognize songs

there is an issue with new source as it wont recognize songs as old source did
I passed same audio file to both old and new source where old bot was able to recognize the song but this new source couldn't recognize the song.

Please help me in fixing this issue.

Getting error while running bot

I hosted this bot on my linux server.
after setting up everything,bot started working.when we search a song it send,its thumbnail 1st.but after that sending an error message instead of that mp3 file.no error is showing in terminal.

"OPS :( Something went wrong please send to @An0nimia this link: "

kindly fix it

Error open

Traceback (most recent call last):
File "dwsongs-normal.py", line 53, in
downloa = Login(deezer_token)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/deezloader/init.py", line 37, in init
raise exceptions.BadCredentials("Wrong token: %s :(" % token)
deezloader.exceptions.BadCredentials: Wrong token:

Bot won't start

Traceback (most recent call last):
File "/home/downloaderbot/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 377, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./dwsongs.py", line 31, in
downloa = deezloader.Login(setting.username, setting.password)
File "/home/downloaderbot/.local/lib/python3.5/site-packages/deezloader/init.py", line 52, in init
check = self.req.post("http://www.deezer.com/ajax/gw-light.php", params).json()['results']['checkFormLogin']
File "/home/downloaderbot/.local/lib/python3.5/site-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/home/downloaderbot/.local/lib/python3.5/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/downloaderbot/.local/lib/python3.5/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/downloaderbot/.local/lib/python3.5/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home/downloaderbot/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/downloaderbot/.local/lib/python3.5/site-packages/urllib3/connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.5/socket.py", line 576, in readinto
return self._sock.recv_into(b)

Downloading directly to the server

Hi,

I try to establiche it to use this telegram bot just to send the audio file so my server.
So instead of deleting the files after sending it with telegram is just want so let it stick in the download folder and move it to my music directory.

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.