webfeed 0.2.0 copy "webfeed: ^0.2.0" to clipboard
webfeed: ^0.2.0 copied to clipboard

outdatedDart 1 only

A dart package for parsing RSS and Atom feed.

example/main.dart

import 'package:http/http.dart' as http;
import 'package:webfeed/domain/atom_feed.dart';
import 'package:webfeed/domain/rss_feed.dart';

void main() {
  var client = new http.Client();

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

  // Atom feed
  client.get("https://www.theverge.com/rss/index.xml").then((response) {
    return response.body;
  }).then((bodyString) {
    var feed = new AtomFeed.parse(bodyString);
    print(feed);
    return feed;
  });
}
112
likes
0
pub points
89%
popularity

Publisher

unverified uploader

A dart package for parsing RSS and Atom feed.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

xml

More

Packages that depend on webfeed