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:
- Install your locally checked out code in editable mode, including its dependencies, and all dev dependencies into a virtual environment:
pipenv sync --dev
- Create an environment file and fill in the required values:
cp .env.example .env
- 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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for spotifyconnector-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77bf9ef79c85db10b9b38bcb21df7dc7f597b62374b66cca129939cf879609df |
|
MD5 | 338f6844e4c86794bf3a2eff90326c6a |
|
BLAKE2b-256 | b9411109de57950fd2edc695aaba4515669a04eccc91256202877582d4fc5daf |