Отображает в статусе Telegram тот трек, который сейчас играет в Spotify / Display your current listen to a song from Spotify in the Telegram bio.
$ git clone https://github.com/L4zzur/spotify-to-telegram.git
$ cd spotify-to-telegram
$ pip3 install -r requirements.txt
- Переходим на my.telegram.org / Go to my.telegram.org
- Авторизуемся и нажимаем на API development tools / Authorize and click on API development tools
- Cоздаем приложение и ставим тип web (можно указать любые названия, нам нужны только api_id и api_hash) / Create an application and set the web type (you can specify any names, we only need api_id and api_hash):
Никому не сообщайте эти данные / Don't share this tokens with anyone
- Переходим на Spotify Dashboard / Go to Spotify Dashboard
- Авторизуемся и создаем новое приложение / Log in and create a new application
- Переходим в созданное приложение, а затем в настройки / Go to the created application, and then in settings
- Изменяем строчку Redirect URIs на http://localhost:8888/callback / Changing the Redirect URIs line to http://localhost:8888/callback
Никому не сообщайте эти данные / Don't share this tokens with anyone
- Заходим в директорию со скриптом (Шаг 2 из установки) / Go to the script directory (step 2 from the installation)
- Запускаем скрипт для настройки / Run the script to configure:
$ python3 setup.py
- Заполняем все нужные данные, которые мы получили ранее, как просит скрипт / Fill all the necessary data that we received earlier, as requested by the script.
- Авторизуем наше приложение Spotify через ссылку, которую вернул скрипт / Authorizing our Spotify application through the link that the script returned. Либо же можно заполнить конфиг самостоятельно в файле config.py / Or you can fill in the config yourself in the config.py file
- Запускаем скрипт / Run script:
$ python3 main.py
- Проходим авторизацию Telegram / Pass to the Telegram authorization
- Радуемся! / Enjoy!