Skip to main content

A python wrapper for the Podcast Index API (podcastindex.org).

Project description

Build Status codecov

python-podcastindex

A python wrapper for the Podcast Index API (podcastindex.org)

Installation

(coming soon)

Usage

Init the podcast index

import podcastindex

config = {
    "api_key": "YOUR API KEY HERE",
    "api_secret": "YOUR API SECRET HERE"
}

index = podcast_index.init(config)

Search

result = index.search("This American Life")
Click to see sample result!
  {
      "status": "true",
      "feeds": [
          {
              "id": 522613,
              "title": "This American Life",
              "url": "http://feed.thisamericanlife.org/talpodcast",
              "originalUrl": "http://feed.thisamericanlife.org/talpodcast",
              "link": "https://www.thisamericanlife.org",
              "description": "This American Life is a weekly public ...",
              "author": "This American Life",
              "ownerName": "",
              "image": "https://files.thisamericanlife.org/sites/all/themes/thislife/img/tal-name-1400x1400.png",
              "artwork": "https://files.thisamericanlife.org/sites/all/themes/thislife/img/tal-name-1400x1400.png",
              "lastUpdateTime": 1607323495,
              "lastCrawlTime": 1607632436,
              "lastParseTime": 1607323495,
              "lastGoodHttpStatusTime": 1607632436,
              "lastHttpStatus": 200,
              "contentType": "text/xml; charset=UTF-8",
              "itunesId": 201671138,
              "generator": null,
              "language": "en",
              "type": 0,
              "dead": 0,
              "crawlErrors": 0,
              "parseErrors": 0,
              "categories": {
                  "77": "Society",
                  "78": "Culture",
                  "1": "Arts",
                  "55": "News",
                  "59": "Politics"
              },
              "locked": 0,
              "imageUrlHash": 1124696616
          },
          ...
      ],
      "count": 8,
      "query": "This American Life",
      "description": "Found matching feeds."
  }

Contributing

(coming soon)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-podcastindex-1.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

python_podcastindex-1.1.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page