podcast_search 0.3.4

Dart native
Flutter Android iOS

A library for searching for podcasts (via iTunes), parsing podcast RSS feeds and obtaining episodes details.

A library for searching for podcasts (via iTunes), parsing podcast RSS feeds and obtaining episodes details.

Usage #

Search for podcasts with 'widgets' in the title and find the top podcasts. Both examples limit to 10 results and are set for the United Kingdom:

import 'package:podcast_search/podcast_search.dart';

main() async {
  var search = Search();

  /// Search for podcasts with 'widgets' in the title.
  SearchResult results = await search.search("widgets",
      country: Country.UNITED_KINGDOM,
      limit: 10);

  /// List the name of each podcast found.
  results.items?.forEach((result) {
    print("Found podcast: ${result.trackName}");
  });

  /// Parse the first podcast.
  Podcast podcast = await Podcast.loadFeed(url: results.items[0].feedUrl);

  /// Display episode titles.
  podcast.episodes?.forEach((episode) {
    print("Episode title: ${episode.title}");
  });

  /// Find the top 10 podcasts in the UK.
  var charts = await search.charts(limit: 10, country: Country.UNITED_KINGDOM);

  /// List the name of each podcast found.
  charts.items?.forEach((result) {
    print('Episode title: ${result.trackName}');
  });
}
1
likes
90
pub points
58%
popularity

Publisher

amugofjava.me.uk

A library for searching for podcasts (via iTunes), parsing podcast RSS feeds and obtaining episodes details.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dart_rss, dio, meta

More

Packages that depend on podcast_search