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
- Create a virtual environment:
python3 -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:
cp .env.example .env
- Run the script:
python3 -m spotifyconnector
- Publish the package:
python3 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.1.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for spotifyconnector-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c949a52a19ad2c4200c64d00f23717bd4bb566e3f4b9900e5300a73c1249a471 |
|
MD5 | 6503fdf9262a08e9aecf5f7834b93302 |
|
BLAKE2b-256 | fe495c0fa9f542b012eec64255f925877fec8632b356bbdd2ba42c7ef320790e |