An open API service indexing awesome lists of open source software.

https://github.com/jeschkies/spotify-connect-scrobbler

A Small Webservice That Scrobbles Spotify Connect Plays
https://github.com/jeschkies/spotify-connect-scrobbler

lastfm-api scrobble-bot scrobbler spotify-api

Last synced: 4 months ago
JSON representation

A Small Webservice That Scrobbles Spotify Connect Plays

Awesome Lists containing this project

README

          

# A Spotify Connect Scrobbler

[![Build Status](https://travis-ci.org/jeschkies/spotify-connect-scrobbler.svg?branch=master)](https://travis-ci.org/jeschkies/spotify-connect-scrobbler) [![codecov](https://codecov.io/gh/jeschkies/spotify-connect-scrobbler/branch/master/graph/badge.svg)](https://codecov.io/gh/jeschkies/spotify-connect-scrobbler)

A Small Webservice That Scrobbles Spotify Connect Plays

# Setup

The best way to run this scrobbler is with [virtualenv](https://virtualenv.pypa.io).
Assuming you have already virtualenv and Python 3.6 installed, create a new environment

```bash
virtualenv --python=python3.6
```

Activate the environment and install the scrobbler from git:

```bash
cd
source bin/activate
bin/pip install git+https://github.com/jeschkies/spotify-connect-scrobbler.git
```

Verify that the scrobbler is avialable:

```bash
scrobbler --help
```

The scrobbler requires access tokens to the Spotify web API and Last.fm API.
You authenticate your accounts with

```
SPOTIFY_CLIENT_ID= \
SPOTIFY_CLIENT_SECRET= \
LASTFM_API_KEY= \
LASTFM_API_SECRET= \
scrobbler-auth
```

After you've followed the instructions the access tokens are saved to the
credentials file you've specified. This file is required by the scrobbler.

# Build Instructions

We use tox for building and testing. Just install and run tox

```
pip install tox
tox
```