https://github.com/activitywatch/aw-watcher-spotify

Logs what you listen to on Spotify

https://github.com/activitywatch/aw-watcher-spotify

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary

Keywords

activitywatch activitywatch-watcher spotify spotify-api
Last synced: 6 months ago · JSON representation

Repository

Logs what you listen to on Spotify

Basic Info
  • Host: GitHub
  • Owner: ActivityWatch
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 87.9 KB
Statistics
  • Stars: 78
  • Watchers: 6
  • Forks: 10
  • Open Issues: 12
  • Releases: 0
Topics
activitywatch activitywatch-watcher spotify spotify-api
Created almost 9 years ago · Last pushed 6 months ago
Metadata Files
Readme License

README.md

aw-watcher-spotify

Watches your currently playing Spotify track. This is on a per-user basis since it uses the Spotify Web API, so you don't need to run it on all your machines if you don't want the redundancy.

This watcher is currently in a early stage of development, please submit PRs if you find bugs!

Usage

Step 0: Create Spotify Web API token

Go to Spotify Developer Dashboard and create a new application.

In the app settings, add http://127.0.0.1:8088 in the Redirect URIs section.

Step 1: Install package (using poetry)

Requirements: Requires that you have poetry installed.

First install the package and its dependencies:

sh poetry install

First run (generates empty config that you need to fill out):

sh poetry run aw-watcher-spotify

Step 1: Install package (without poetry, using only pip)

Install the requirements:

sh pip install .

First run (generates empty config that you need to fill out): sh python aw-watcher-spotify/main.py

Step 2: Enter credentials

If this is the first time you run it on your machine, it will give you an error, this is normal. Just fill in the config file (the directory is referenced in the error).

Run the script again and... You're done! Try playing a song on Spotify on any of your devices and it should start logging (provided they are not in offline mode).

Note

Even without using this watcher, you can get a full export of the last year of listening history by requesting an export directly from Spotify here: https://www.spotify.com/us/account/privacy/

The export contains, among other things:

  • Streaming history for the past year
  • Playlists
  • Search queries
  • A list of items saved in your library
  • User data
  • Inferences

(thanks @oreHGA for the tip!)

Owner

  • Name: ActivityWatch
  • Login: ActivityWatch
  • Kind: organization

Open source time-tracking application with a focus on extensibility and privacy.

GitHub Events

Total
  • Issues event: 4
  • Watch event: 9
  • Issue comment event: 11
  • Push event: 2
  • Pull request review comment event: 1
  • Pull request review event: 3
  • Pull request event: 7
  • Fork event: 4
Last Year
  • Issues event: 4
  • Watch event: 9
  • Issue comment event: 11
  • Push event: 2
  • Pull request review comment event: 1
  • Pull request review event: 3
  • Pull request event: 7
  • Fork event: 4

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 34
  • Total Committers: 5
  • Avg Commits per committer: 6.8
  • Development Distribution Score (DDS): 0.147
Past Year
  • Commits: 2
  • Committers: 2
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.5
Top Committers
Name Email Commits
Erik Bjäreholt e****k@b****t 29
Fabio Barbero f****a@o****m 2
Erik Bjäreholt e****t@g****m 1
Viren Mohindra V****a 1
holy_jesus 8****s 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 24
  • Total pull requests: 14
  • Average time to close issues: 4 months
  • Average time to close pull requests: 12 days
  • Total issue authors: 18
  • Total pull request authors: 7
  • Average comments per issue: 1.29
  • Average comments per pull request: 0.14
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 8
  • Average time to close issues: 2 days
  • Average time to close pull requests: 18 days
  • Issue authors: 3
  • Pull request authors: 2
  • Average comments per issue: 1.67
  • Average comments per pull request: 0.13
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ErikBjare (6)
  • VirenMohindra (2)
  • alexriabtsev (1)
  • sudokit (1)
  • xplosionmind (1)
  • AyomideA-S (1)
  • evopls (1)
  • tqwewe (1)
  • PAK90 (1)
  • itsCryne (1)
  • wirescarryingme (1)
  • BLACK4585 (1)
  • demuxer (1)
  • tippfehlr (1)
  • B1zguy (1)
Pull Request Authors
  • evopls (6)
  • ErikBjare (2)
  • RTnhN (2)
  • fbarbe00 (1)
  • holy-jesus (1)
  • Edwardsoen (1)
  • VirenMohindra (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

poetry.lock pypi
  • black 21.12b0 develop
  • mypy 0.910 develop
  • mypy-extensions 0.4.3 develop
  • pathspec 0.9.0 develop
  • platformdirs 2.4.0 develop
  • toml 0.10.2 develop
  • tomli 1.2.3 develop
  • typed-ast 1.4.3 develop
  • appdirs 1.4.4
  • attrs 21.2.0
  • aw-client 0.5.7
  • aw-core 0.5.7
  • certifi 2021.10.8
  • charset-normalizer 2.0.9
  • click 8.0.3
  • colorama 0.4.4
  • deprecation 2.1.0
  • idna 3.3
  • importlib-metadata 4.10.0
  • iso8601 0.1.16
  • jsonschema 3.2.0
  • packaging 21.3
  • peewee 3.14.8
  • persist-queue 0.6.0
  • pyparsing 3.0.6
  • pyrsistent 0.18.0
  • python-json-logger 2.0.2
  • requests 2.26.0
  • six 1.16.0
  • spotipy 2.19.0
  • strict-rfc3339 0.7
  • takethetime 0.3.1
  • timeslot 0.1.2
  • tomlkit 0.8.0
  • typing-extensions 4.0.1
  • urllib3 1.26.7
  • zipp 3.6.0
pyproject.toml pypi
  • black * develop
  • mypy ^0.910 develop
  • aw-client ^0.5.7
  • python ^3.7
  • spotipy ^2.12.0
.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite