rss_feed_parser 1.0.0 copy "rss_feed_parser: ^1.0.0" to clipboard
rss_feed_parser: ^1.0.0 copied to clipboard

Dart parser for RSS1.0, RSS2.0, Atom feeds.

example/main.dart

import 'package:http/http.dart' as http;
import 'package:rss_feed_parser/rss_feed_parser.dart';

void main() {
  final client = http.Client();

  // RSS feed
  client
      .get(Uri.parse(
          'https://developer.apple.com/news/releases/rss/releases.rss'))
      .then((response) {
    return response.body;
  }).then((bodyString) {
    final channel = RssFeed.parse(bodyString);
    return channel;
  });

  // Atom feed
  client
      .get(Uri.parse('https://www.theverge.com/rss/index.xml'))
      .then((response) {
    return response.body;
  }).then((bodyString) {
    final feed = AtomFeed.parse(bodyString);
    return feed;
  });
}
0
likes
0
pub points
24%
popularity

Publisher

verified publisherardeviot.com

Dart parser for RSS1.0, RSS2.0, Atom feeds.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, intl, xml

More

Packages that depend on rss_feed_parser