Metadata-Version: 2.1
Name: spotify-podcast-rss
Version: 0.3.2
Summary: RSS for Spotify podcasts
Home-page: https://github.com/Eboreg/spotify-podcast-rss
Author: Robert Huselius
Author-email: robert@huseli.us
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Multimedia :: Sound/Audio
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: feedgen
Requires-Dist: python-dateutil
Requires-Dist: spotipy

# spotify-podcast-rss

Produces a simple RSS feed for podcasts on Spotify. Unfortunately not with links to mp3 files or such, since Spotify doesn't provide those. But still.

## Requirements

```shell
pip install feedgen python-dateutil spotipy
```

## Configuration

First, make sure you have a [Spotify app](https://developer.spotify.com/dashboard/applications).

Then, make an INI file with these contents:

```ini
[spotify]
client_id = (your client ID)
client_secret = (your client secret)
market = (your two-letter country code)
```

Default filename is `config.ini` in current directory. For any other filename, point to it via environment variable `SPR_CONFIG` or use `--config` parameter (see below).

## Usage

### Command line

When installed via `setup.py` or PIP, the command `spr` will point to `spr/cli.py`. This takes a Spotify show ID as parameter and outputs RSS to stdout.

Command line syntax:

```shell
spr [-c/--config (path to config file)] SPOTIFY_SHOW_ID
```

### WSGI

`spr.wsgi` contains a very simple WSGI application. Given a URL ending with a Spotify show ID, it outputs an RSS feed for that podcast, or a 404 response if the podcast was not found. Without show ID, it gives you a wonderfully primitive POST form, which accepts a show ID or a full Spotify show URL.


