Skip to main content

A python wrapper for the Buzzsprout API

Project description

Buzzsprout-Manager

Summary

Buzzsprout Manager is a (somewhat) complete python wrapper for the Buzzsprout Podcast Hosting API. It currently supports most of the functionality of buzzsprout's web UI, including uploading/creating new episodes, retrieving information from existing episodes, as well as updating information or changing an episode's private status.

Getting Started

Installation

pip install buzzsprout-manager

Basic Usage

from bsm import Manager

ID = 'My Podcast ID'
TOKEN = 'My API Token'

manager = Manager(ID, TOKEN) # Init

episodes = manager.get_all_episodes() # Get all episodes as EpisodeGroup object

my_episode = episodes[0] # Get Episode object

print(my_episode.title) # "My Podcast Title"

manager.update_episode(     # Update given episode with kwarg attributes
    my_episode,
     **{'title': "Updated Title", 'description': "*descriptive text*"}
     ) 
manager.get_all_episodes()[0].title # "Updated Title"

bsm.Episode

ep = manager.get_all_episodes()[0]  # Manager returns a single bsm.Episode object

ep.title                            # 'The Podcast Title'

ep.get_date()                       # Returns the episode's published date as datetime.datetime object

ep.get_all_data()                   # Returns a {} of all episode attributes

ep.get_existing_data()              # Returns a {} of all episode attributes that aren't 'None'

The following members can be retrieved and/ or modified:

['id',
'title',
'audio_url',
'artwork_url',
'description',
'summary',
'artist',
'tags',
'published_at',
'duration',
'hq',
'magic_mastering',
'guid',
'inactive_at',
'episode_number',
'season_number',
'explicit',
'private',
'total_plays']

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

buzzsprout-manager-0.0.3.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

buzzsprout_manager-0.0.3-py3-none-any.whl (7.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