Skip to content

nerraf-dev/Spotify-Latest-Played-to-Bluesky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify-Playing-Now

Spotify-Playing-Now is a Python application that posts the tracks you are currently listening to on Spotify to Bluesky. It can also post the last three tracks you listened to if you have listened to at least 75% of each track.

Features

  • Posts the currently playing track on Spotify to Bluesky.
  • Posts the last three tracks you listened to on Spotify to Bluesky.
  • Configurable via environment variables.
  • Test mode to simulate posting tracks without actually listening to them.

Requirements

  • Python 3.7+
  • Spotify Developer Account
  • Bluesky Account

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Spotify-Playing-Now.git
    cd Spotify-Playing-Now
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Create a .env file from the example:

    cp .env.example .env
  5. Fill in your own values in the .env file:

    SPOTIFY_CLIENT_ID=your_spotify_client_id
    SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
    SPOTIFY_REDIRECT_URI=http://localhost:1234
    SPOTIFY_SCOPE=user-library-read user-read-playback-state user-read-recently-played
    SPOTIFY_CACHE_PATH=.cache
    BLUESKY_HANDLE=your_bluesky_handle
    BLUESKY_PASSWORD=your_bluesky_password
    BLUESKY_MENTION_HANDLE=@handle-to-mention

Usage

  1. Run the application:

    python src/main.py
  2. The application will start listening for tracks on Spotify and post them to Bluesky.

Test Mode

To quickly test the functionality without listening to tracks, you can enable test mode. In src/main.py, set test_mode to True:

    # Enable test mode
    test_mode = True

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages