Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pbs/python-coveapi

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Python-coveapi is the Python client for the PBS COVE API service.

Getting Started

Installation

Install coveapi to your Python path (hopefully in a virtualenv!).

python setup.py install

Usage

To do anything, you will first need a connection to the COVE API service:

import coveapi
cove = coveapi.connect('PHONY-COVEAPI-APP-ID', 'PHONY-COVEAPI-APP-SECRET')

To retrieve a single resource, pass the resource ID, or resource URI to *.get()

cove.videos.get(3143)
cove.videos.get('/cove/v1/videos/3143/')
cove.videos.get('http://api.pbs.org/cove/v1/videos/3143/')

To retrieve a list resources, pass the filters to *.filter()

cove.programs.filter(filter_nola_root='NOVA')
cove.programs.filter(filter_title='American Experience')

To retrieve deleted resources, use the graveyard's deleted_since method:

cove.graveyard.deleted_since(deleted_since='2014-04-10T05:00:00')

You may query with .get() or .filter() for:

  • Groups: cove.groups.get(resource_uri)
  • Categories: cove.categories.get(resource_uri)
  • Programs: cove.programs.get(resource_uri)
  • Videos: cove.videos.get(resource_uri)

Everything returns a Python dict as emitted from JSON data.

See COVE API documentation for the complete list of filters and return data.

About

Python client for the PBS COVE API service.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.