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()

# ...

Development

  1. Create a virtual environment:
python3 -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:
cp .env.example .env
  1. Run the script:
python3 -m spotifyconnector
  1. Publish the package:
python3 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.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

spotifyconnector-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spotifyconnector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 836a9ffe89587933ac677b263bda01a673626e90480d58ac91c843c610d7928d
MD5 237751b21319879588ef9da8b01a54a9
BLAKE2b-256 442687b1c0b2497ad598b2101d437f64edddb8390f852f01c8f063f2a88635d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spotifyconnector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c949a52a19ad2c4200c64d00f23717bd4bb566e3f4b9900e5300a73c1249a471
MD5 6503fdf9262a08e9aecf5f7834b93302
BLAKE2b-256 fe495c0fa9f542b012eec64255f925877fec8632b356bbdd2ba42c7ef320790e

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