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
Built Distribution
File details
Details for the file spotifyconnector-0.1.1.tar.gz
.
File metadata
- Download URL: spotifyconnector-0.1.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 836a9ffe89587933ac677b263bda01a673626e90480d58ac91c843c610d7928d |
|
MD5 | 237751b21319879588ef9da8b01a54a9 |
|
BLAKE2b-256 | 442687b1c0b2497ad598b2101d437f64edddb8390f852f01c8f063f2a88635d0 |
File details
Details for the file spotifyconnector-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: spotifyconnector-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c949a52a19ad2c4200c64d00f23717bd4bb566e3f4b9900e5300a73c1249a471 |
|
MD5 | 6503fdf9262a08e9aecf5f7834b93302 |
|
BLAKE2b-256 | fe495c0fa9f542b012eec64255f925877fec8632b356bbdd2ba42c7ef320790e |