Asynchronous Python client for the PodPlay.com API
pip install podplay-api
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)
If you'd like to contribute to the project, please submit a pull request or open an issue on the GitHub repository.
podplay-api is licensed under the MIT license. See the LICENSE file for more details.
If you have any questions or need assistance with the library, you can contact the project maintainer at @bendikrb.