Skip to content

bendikrb/podplay-api

Repository files navigation

podplay-api

GitHub Release Python Versions Project Maintenance License

Build Status Code coverage

Asynchronous Python client for the PodPlay.com API

Installation

pip install podplay-api

Usage

The following are some basic examples of how to use the library.

Get information about a specific podcast:

import asyncio

from podplay_api import PodPlayClient


async def main():
    """Main function."""
    async with PodPlayClient() as client:
        podcast = await client.get_podcast(podcast_id=31428)
        print(podcast)


if __name__ == "__main__":
    asyncio.run(main())

Get all episodes for a specific podcast:

episodes = await client.get_podcast_episodes(podcast_id=31428)
for episode in episodes:
    print(episode)

Search for a specific podcast:

search_results = await client.search_podcast("dude")
for podcast in search_results:
    print(podcast)

Get top podcasts of a category:

podcasts = await client.get_podcasts_by_category(31428)
for podcast in podcasts:
    print(podcast)

Contributing

If you'd like to contribute to the project, please submit a pull request or open an issue on the GitHub repository.

License

podplay-api is licensed under the MIT license. See the LICENSE file for more details.

Contact

If you have any questions or need assistance with the library, you can contact the project maintainer at @bendikrb.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published