webfeed 0.6.0 webfeed: ^0.6.0 copied to clipboard
webfeed is a dart package for parsing RSS and Atom feeds. Media, DublinCore, iTunes, Syndication namespaces are also supported.
import 'package:http/http.dart' as http;
import 'package:webfeed/webfeed.dart';
void main() async {
var client = http.Client();
// RSS feed
var response = await client
.get('https://developer.apple.com/news/releases/rss/releases.rss');
var channel = RssFeed.parse(response.body);
print(channel);
// Atom feed
response = await client.get('https://www.theverge.com/rss/index.xml');
var feed = AtomFeed.parse(response.body);
print(feed);
client.close();
}