Registry / communication / spotifytracker

spotifytracker

JSON →
library0.0.18pypypiunverified

Track your Spotify play history by fetching recently played tracks and storing them locally. Version 0.0.18 is in early development; releases are sporadic.

pip install spotifytracker
INSTALL
IMPORT
SIG · SPOTIFYTRACKER
S
spotifytracker
communicationpythonv0.0.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpotifyTracker
from spotifytracker import SpotifyTracker
import spotifytracker
Common mistake: direct module import does not expose the class

Minimal example: authenticate and start tracking play history.

from spotifytracker import SpotifyTracker import os client_id = os.environ.get('SPOTIFY_CLIENT_ID', '') client_secret = os.environ.get('SPOTIFY_CLIENT_SECRET', '') if not client_id or not client_secret: raise ValueError("Set SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET environment variables") tracker = SpotifyTracker(client_id, client_secret) tracker.run()
spotifytracker --version
Debug
Known issues
gotchaThe library requires Spotify API credentials with the 'user-read-recently-played' scope. Without it, no data is fetched and no error is raised.
fix
Ensure your Spotify app has the scope enabled and you pass correct credentials.
affects: all
gotcharun() blocks indefinitely; there is no built-in way to stop gracefully except KeyboardInterrupt. The library does not support async or background threads.
fix
Wrap with timeout or run in a separate thread if non-blocking behavior is needed.
affects: all
deprecatedThe constructor parameter 'token' was renamed to 'access_token' in v0.0.15. Old code using 'token' will break.
fix
Use 'access_token' instead of 'token' when instantiating SpotifyTracker.
affects: >=0.0.15
Upgrade
Version history
0.0.18latest on PyPI · released Sep 14, 2018
Audit
Dependencies
requestsrequiredHTTP requests to Spotify API
Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
spotifytracker — pip install spotifytracker · libregistry