L4zzur / spotify-to-telegram

Share your current track in Spotify to Telegram bio

Home Page:https://t.me/bl1nzy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify to Telegram Bio

Display your currently playing song from Spotify in your Telegram bio and/or as a channel message.

1.1.1

1.1.2

Installation

Clone the repository
$ git clone https://github.com/L4zzur/spotify-to-telegram.git
Go to the "spotify-to-telegram" folder
$ cd spotify-to-telegram
Create a virtual environment and activate it
$ python -m venv venv
$ source venv/bin/activate (or venv/bin/activate on Windows)
Install libraries using pip
$ pip install -r requirements.txt

Setting up

Telegram

  1. Go to my.telegram.org
  2. Authorize and click on API development tools
  3. 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 these tokens with anyone.

Spotify

  1. Go to Spotify Dashboard
  2. Log in and create a new application 1.3
  3. Go to the created application, and then to settings 1.4
  4. Change the Redirect URIs line to http://localhost:8888/callback 1.5

Don't share these tokens with anyone.

Python

  1. Go to the script directory (step 2 from the installation)
  2. Run the script to configure (check you're has (venv)):
$ python setup.py
  1. Fill in all the necessary data that we received earlier, as requested by the script.
  2. Authorize Telegram account in terminal by following the instructions.

1.6

Run

  1. Run script:
$ python main.py
  1. Proceed with the Spotify authorization (need to be done only once, but you need active login on Spotify in browser).
  2. Enjoy!

Installation on VPS/VDS

You can install the script on VPS/VDS using systemd insruction.

About

Share your current track in Spotify to Telegram bio

https://t.me/bl1nzy

License:MIT License


Languages

Language:Python 91.7%Language:Jinja 8.3%