Feedparser
A Dart library for parsing RSS feeds
Install / Use
/learn @xqwzts/FeedparserREADME
feedparser
A Dart library for parsing RSS feeds.
Usage
import 'package:feedparser/feedparser.dart';
void main() {
Feed feed = parse(r'''
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Hello World!</title>
<description>Parse RSS feeds in Dart with feedparser</description>
</channel>
</rss>
''');
print(feed);
// Output:
// title: Hello World!
// link: null
// description: Parse RSS feeds in Dart with feedparser
// language: null
// copyright: null
// pubDate: null
// lastBuildDate: null
// image: null
// items: []
}
Strict mode
As long as the input string provided is a valid XML string, feedparser will
attempt to parse it and return a Feed object. In strict mode feedparser instead
throws ArgumentErrors for missing mandatory fields [as defined by the
RSS 2.0 spec]. This is useful for
testing feeds to ensure they meet the spec, but impractical when dealing with
feeds not under your control.
Feed feed = parse(xmlString, strict: true);
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
