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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9276a50e547e7b3be51e7d5ffad2ec6b12fbf5d83ec19cc46ed29e113584ed63 |
|
MD5 | 89105ad55a5c35988a39ae3c6e721862 |
|
BLAKE2b-256 | 10da3373c92c03dbecd3f4077a203f9302741c2c4c74e8d1dd970afef3852f46 |
File details
Details for the file spotifyconnector-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: spotifyconnector-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 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 | c9b1f53dd364ca6197e136f2f542183e2689e4569ca5a7625f3f8b3c332bc288 |
|
MD5 | 76282bbd7ce59907b6d79edf67cdbc3c |
|
BLAKE2b-256 | 13b84e52ba2abc3c62e03427e8db8ee19240dd07dd46f16fccdb5605a9459df8 |