inessential by Brent Simmons

Evergreen’s Parser as Separate Open Source Framework

I copied Evergreen’s parsing framework, RSParser, to a separate repository on GitHub.

It has no dependencies other than system-supplied libraries. It’s offered via the MIT License.

It builds a Mac framework only at the moment, but adding an iOS target should be easy. It’s the one issue in the bug tracker (at least so far).

Otherwise it’s fast and stable and does the jobs it’s designed to do.

Things it parses

  • RSS
  • Atom
  • JSON Feed
  • RSS-in-JSON
  • OPML
  • Internet dates
  • HTML metadata
  • HTML links

In addition, you can build your own XML or HTML parser by creating an RSSAXParserDelegate or RSSAXHTMLParserDelegate.

It’s a mix of Objective-C and Swift. More recent code is in Swift.

Parsing a feed that’s RSS, Atom, JSON Feed, or RSS-in-JSON is a matter of calling FeedParser.parse and getting back a ParsedFeed object. Pretty simple.