Skip to content

L4zzur/spotify-to-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify to Telegram Bio

Отображает в статусе Telegram тот трек, который сейчас играет в Spotify / Display your current listen to a song from Spotify in the Telegram bio.

1.1

Установка / Installation:

Склонировать репозиторий / Clone repository:
$ git clone https://github.com/L4zzur/spotify-to-telegram.git
Перейти в папку "spotify-to-telegram" / Go to "spotify-to-telegram" folder:
$ cd spotify-to-telegram
Установить зависимости с помощью pip / Install libraries using pip:
$ pip3 install -r requirements.txt

Настройка / Setting up:

Telegram:

  1. Переходим на my.telegram.org / Go to my.telegram.org
  2. Авторизуемся и нажимаем на API development tools / Authorize and click on API development tools
  3. 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): 1.2

Никому не сообщайте эти данные / Don't share this tokens with anyone

Spotify

  1. Переходим на Spotify Dashboard / Go to Spotify Dashboard
  2. Авторизуемся и создаем новое приложение / Log in and create a new application 1.3
  3. Переходим в созданное приложение, а затем в настройки / Go to the created application, and then in settings 1.4
  4. Изменяем строчку Redirect URIs на http://localhost:8888/callback / Changing the Redirect URIs line to http://localhost:8888/callback 1.5

Никому не сообщайте эти данные / Don't share this tokens with anyone

Python

  1. Заходим в директорию со скриптом (Шаг 2 из установки) / Go to the script directory (step 2 from the installation)
  2. Запускаем скрипт для настройки / Run the script to configure:
$ python3 setup.py
  1. Заполняем все нужные данные, которые мы получили ранее, как просит скрипт / Fill all the necessary data that we received earlier, as requested by the script.
  2. Авторизуем наше приложение 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

1.6

Запуск / Run

  1. Запускаем скрипт / Run script:
$ python3 main.py
  1. Проходим авторизацию Telegram / Pass to the Telegram authorization
  2. Радуемся! / Enjoy!

About

Share your current track in Spotify to Telegram bio

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages