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 the dashboard.

Supported Data

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

Usage as a library

from spotify_importer import SpotifyImporter

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

  1. Create a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. Create an environment file and fill in the required values. Run source .env to load the environment variables.
cp .env.example .env
source .env
  1. Run the script:
python -m spotifyconnector
  1. 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.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

spotifyconnector-0.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spotifyconnector-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9276a50e547e7b3be51e7d5ffad2ec6b12fbf5d83ec19cc46ed29e113584ed63
MD5 89105ad55a5c35988a39ae3c6e721862
BLAKE2b-256 10da3373c92c03dbecd3f4077a203f9302741c2c4c74e8d1dd970afef3852f46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spotifyconnector-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b1f53dd364ca6197e136f2f542183e2689e4569ca5a7625f3f8b3c332bc288
MD5 76282bbd7ce59907b6d79edf67cdbc3c
BLAKE2b-256 13b84e52ba2abc3c62e03427e8db8ee19240dd07dd46f16fccdb5605a9459df8

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