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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5109d3fc9a8a558c442ff5c248c9e0ecc883c57b51586f372c0c693a8179e907 |
|
MD5 | a1453b7c725d5ec667521d0b3d9231bb |
|
BLAKE2b-256 | ae3b42e97dedcfc22a0e44e6467d90170d6f12fb6903ce8e3496a409c1f38a71 |
File details
Details for the file spotifyconnector-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: spotifyconnector-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77bf9ef79c85db10b9b38bcb21df7dc7f597b62374b66cca129939cf879609df |
|
MD5 | 338f6844e4c86794bf3a2eff90326c6a |
|
BLAKE2b-256 | b9411109de57950fd2edc695aaba4515669a04eccc91256202877582d4fc5daf |