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

outdated

A dart package for parsing RSS and Atom feed.

example/main.dart

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

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

  // RSS feed
  client.get("https://blog.apollographql.com/feed").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