Skip to main content

access_spotify

This project is for all the music obsessives out there.

It will eventually evolve into a package that offers advanced functionality for utilizing the Spotify API.

Currently, the CLI interface queries Spotify for the specified artist (default = 'The Beatles' because who else?) and downloads all the album art, and all the album audio features and analysis for the artist.

You can also import individual album data directly into a data-frame via a script or notebook.

The album audio features and analysis are pickled as separate data-frames, which can then be read into pandas and analyzed, visualized etc.

It is recommended that the user work in their own virtual environment.

Get your own Client_ID and Client_Secret from https://developer.spotify.com/dashboard/applications

For detailed information on the API and what audio features and audio analysis you can get via this script, please refer to https://developer.spotify.com/documentation/web-api/reference/tracks/

Installation and Usage

Install the access-spotify package

  • pip install access-spotify

See the help menu

  • access_script.py --help

Query the Spotify API via CLI

  • access_script.py --artist_name 'Led Zeppelin' --client_id 'your-client-id' --client_secret 'your-client-secret'

This saves all the album art (high resolution) and album track information (audio features and audio analysis) into pickled data-frames in the data/ folder.

Getting data for individual albums from the Spotify API

  • See the example notebook on Github

Also

  • This is still very new, and I will continue to update the Documentation, functionality and add unit tests. Please let me know if you find any bugs or if you have any specific ideas for extending the functionality.

To-Do

  • Documentation
  • Unit tests
  • Improve the argparse functionality
  • Cool visualizations perhaps?
  • Predictive Modeling? How sad will the next Radiohead album be?

This project would not have been possible without Spotipy --> https://spotipy.readthedocs.io/en/2.13.0/

-- Go buy them a coffee and give their github repo a star!

Metadata

Release files for access-spotify 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for access-spotify 1.1
File Size Uploaded Provenance
access-spotify-1.1.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for access-spotify 1.1
File Interpreter ABI Platform
access_spotify-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / access-spotify-1.1.tar.gz

Download URL access-spotify-1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3a20408f87ffc02b5d6a73c69491b85baf6032b09d563d948b2e632585a92a6f
BLAKE2b-256 checksum
How to use checksums
5cfe8abca3b2e07d9d84e2168d2ac7291d8c1e0b3794e975f1a9d783e6b6a1bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6

Release files / access_spotify-1.1-py3-none-any.whl

Download URL access_spotify-1.1-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
157f25dcc7fa03ea41d67c44cbc62ef77a8baa5642ee53315c6800eb1da1bc57
BLAKE2b-256 checksum
How to use checksums
3cddb92eefda0d9dadc3b2a14d4675a86ee9f775f5b0cf41540fcd728b1afc19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6

Security for access-spotify 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page