Skip to main content

Spotify Connector for Podcast Data

Project description

Spotify Connector

This is a simple library for connecting to the inofficial Spotify podcast API.
It can be used to export data from your dashboard at https://podcasters.spotify.com/home.

Supported Data

  • List of episodes
  • Starts and streams
  • Listeners
  • Followers
  • Gender
  • Age
  • Country
  • Episode performance

Usage as a library

from spotifyconnector import SpotifyConnector

connector = SpotifyConnector(
    client_id="your_client_id",
    client_secret="your_client_secret",
    redirect_uri="your_redirect_uri",
    refresh_token="your_refresh_token",
)

# Get podcast metadata
connector.metadata()

# Get the list of episodes
episodes = connector.episodes()

# Get the list of listeners
listeners = connector.listeners()

# Get the list of followers
followers = connector.aggregate()

# Get the performance of an episode
performance = connector.performance("episode_id")

# ...

Development

We are using Pipenv for virtualenv and dev dependency management. With Pipenv installed:

  1. Install your locally checked out code in editable mode, including its dependencies, and all dev dependencies into a virtual environment:
pipenv sync --dev
  1. Create an environment file and fill in the required values:
cp .env.example .env
  1. Run the script in the virtual environment, which will automatically load your .env:
pipenv run spotifyconnector

To add a new dependency for use during the development of this library:

pipenv install --dev $package

To add a new dependency necessary for the correct operation of this library, add the package to the install_requires section of ./setup.py, then:

pipenv install

To publish the package:

python setup.py sdist bdist_wheel
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotifyconnector-0.3.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

spotifyconnector-0.3.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file spotifyconnector-0.3.0.tar.gz.

File metadata

  • Download URL: spotifyconnector-0.3.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for spotifyconnector-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5109d3fc9a8a558c442ff5c248c9e0ecc883c57b51586f372c0c693a8179e907
MD5 a1453b7c725d5ec667521d0b3d9231bb
BLAKE2b-256 ae3b42e97dedcfc22a0e44e6467d90170d6f12fb6903ce8e3496a409c1f38a71

See more details on using hashes here.

File details

Details for the file spotifyconnector-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spotifyconnector-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77bf9ef79c85db10b9b38bcb21df7dc7f597b62374b66cca129939cf879609df
MD5 338f6844e4c86794bf3a2eff90326c6a
BLAKE2b-256 b9411109de57950fd2edc695aaba4515669a04eccc91256202877582d4fc5daf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page