Skip to content

L4zzur/spotify-to-vk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify to VK Bio

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

1.1

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

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

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

VK:

  1. Переходим на vkhost.github.io / Go to vkhost.github.io
  2. Выбираем Kate Mobile / Choose Kate Mobile: 1.2
  3. Разрешаем доступ через свой аккаунт / Allow access through your account
  4. Копируем часть адресной строки от access_token= до &expires_in / Copy the part of the address bar from access_token= to &expires_in

Никому не сообщайте эти данные / 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 через ссылку, которую вернул скрипт. Либо же можно заполнить конфиг самостоятельно в файле config.py / Authorizing our Spotify application through the link that the script returned. Or you can fill in the config yourself in the config.py file

1.6

Запуск / Run

  1. Запускаем скрипт / Run script:
$ python3 main.py
  1. Радуемся! / Enjoy!

About

Share your current track in Spotify to VK bio

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages