Skip to content

Jma353/py-podcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

iTunes podcast data retrieval driver

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published