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
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install the dependencies:
pip install -r requirements.txt
- Create an environment file and fill in the required values. Run
source .env
to load the environment variables.
cp .env.example .env
source .env
- Run the script:
python -m spotifyconnector
- 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.2.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for spotifyconnector-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b1f53dd364ca6197e136f2f542183e2689e4569ca5a7625f3f8b3c332bc288 |
|
MD5 | 76282bbd7ce59907b6d79edf67cdbc3c |
|
BLAKE2b-256 | 13b84e52ba2abc3c62e03427e8db8ee19240dd07dd46f16fccdb5605a9459df8 |