GithubHelp home page GithubHelp logo

petessmmss / pocket-casts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from furgoose/pocket-casts

1.0 0.0 0.0 47 KB

Unofficial API for pocket casts built in python 3

License: MIT License

Python 100.00%

pocket-casts's Introduction

Pocket-Casts

Build Status Coverage Status Code Climate

Unofficial Pocket Casts API written in Python 3.

Installation

$ pip install pocketcasts-api

or clone repo and install from source

$ python setup.py install

Usage

>>> import pocketcasts
>>> pocket = pocketcasts.Pocketcasts('[email protected]', password='password')

Methods

Summary

  • pocket. get_top_charts()
  • pocket. get_featured()
  • pocket. get_trending()
  • pocket. get_episode(podcast, episode_uuid)
  • pocket. get_podcast(uuid)
  • pocket. get_podcast_episodes(podcast, sort)
  • pocket. get_episode_notes(episode_uuid)
  • pocket. get_subscribed_podcasts()
  • pocket. get_new_releases()
  • pocket. get_in_progress()
  • pocket. get_starred()
  • pocket. update_starred(podcast, episode, starred)
  • pocket. update_playing_status(podcast, episode, status)
  • pocket. update_played_position(podcast, episode, position)
  • pocket. subscribe_podcast(podcast)
  • pocket. unsubscribe_podcast(podcast)
  • pocket. search_podcasts(search_str)

get_top_charts()

Returns the top charts currently on the pocketcasts website, as a list of Podcast classes

>>> pocket = pocketcasts.Pocketcasts('[email protected]')
>>> print(pocket.get_top_charts())
[<class 'pocketcasts.podcast.Podcast'> (
    {'_media_type': 'Audio',
     '_uuid': '3782b780-0bc5-012e-fb02-00163e1b201c',
     '_description': '...',
     '_episodes_sort_order': 3,
     '_url': 'https://www.thisamericanlife.org',
     '_thumbnail_small': '',
     '_thumbnail_url': '...',
     '_author': 'This American Life',
     '_id': '',
     '_language': 'en',
     '_api': <pocketcasts.api.Pocketcasts object at 0x0000016F0E6E6390>,
     '_title': 'This American Life',
     '_categories': ['Society & Culture', 'Arts']}
    ), ...
]

get_featured()

Returns the featured podcasts currently on the pocketcasts website, as a list of Podcast classes

>>> pocket = pocketcasts.Pocketcasts('[email protected]')
>>> print(pocket.get_featured())
[<class 'pocketcasts.podcast.Podcast'>, ...]

get_trending()

Returns the trending podcasts currently on the pocketcasts website, as a list of Podcast classes

>>> pocket = pocketcasts.Pocketcasts('[email protected]')
>>> print(pocket.get_trending())
[<class 'pocketcasts.podcast.Podcast'>, ...]

pocket-casts's People

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.