Podcast Series / Episodes Data Retrieval and Storage in Python


Keywords
itunes, podcasts, python
License
MIT
Install
pip install py-podcast==1.0.7

Documentation

py-podcast

iTunes podcast data retrieval and storage utilizing iTunes Search API and iTunes Podcast Preview

Installation

To install py-podcast

pip install py-podcast

Usage

Below indicates ways you can use the various drivers and modules of this package

import sys
import logging
import feedparser

# py-podcast imports
from podcasts.series_driver import SeriesDriver
from podcasts.episodes_driver import EpisodesDriver
from podcasts.storers.json_storer import JsonStorer
from podcasts.models.series import Series
import podcasts.itunes as itunes

def grab_from_link():
  # Constants
  DIRECTORY = 'csv'
  JSON_DIR = 'jsons'
  # logging.getLogger('py-podcast').disabled = True
  # Series
  genre_urls = \
    ['https://itunes.apple.com/us/genre/podcasts-business/id1321?mt=2']
  SeriesDriver(DIRECTORY).get_series_from_urls(genre_urls)
  # Episodes
  EpisodesDriver(DIRECTORY, JsonStorer(JSON_DIR)).eps_from_series()

def search():
  many_series = itunes.search_podcast_series('Programming')
  return itunes.get_feeds_from_many_series(many_series)

grab_from_link()
search()

Tests

These have yet to be written, but this package has been hand-tested thoroughly.