rss_dart 1.0.1 copy "rss_dart: ^1.0.1" to clipboard
rss_dart: ^1.0.1 copied to clipboard

dart-rss is a rss parser for RSS1.0/RSS2.0/Atom. It also support Dublin-Core, Content, Syndication additional modules. This libary is forked from webfeed(https://github.com/witochandra/webfeed).

example/main.dart

// ignore_for_file: avoid_print

import 'package:http/http.dart' as http;
import 'package:rss_dart/dart_rss.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);
    print(channel);
    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);
    print(feed);
    return feed;
  });
}
5
likes
0
pub points
84%
popularity

Publisher

verified publisherubuntufluttercommunity.org

dart-rss is a rss parser for RSS1.0/RSS2.0/Atom. It also support Dublin-Core, Content, Syndication additional modules. This libary is forked from webfeed(https://github.com/witochandra/webfeed).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, intl, xml

More

Packages that depend on rss_dart