dcaunt / Dalton

A simple RSS & Atom feed parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dalton

Pod Carthage compatible Build Status

A simple RSS & Atom feed parser, built upon Ono.

Requires Xcode 6.

Usage

Parsing feeds is simple. You don't need to know ahead of time whether you're parsing an RSS or Atom feed, and Dalton abstracts away the differences.

NSError *error = nil;
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"sample" withExtension:@"xml"];
NSData *feedData = [NSData dataWithContentsOfURL:fileURL];
id<DLTFeed> feed = [DLTFeed feedWithData:feedData error:&error];

NSLog(@"Feed title is %@", feed.title);
NSLog(@"Feed was last updated at %@", feed.updated);
for (id<DLTFeedEntry> entry in feed.entries) {
    NSLog(@"Entry title is %@ link is %@", entry.title, entry.link);
}

Installation

Dalton supports both CocoaPods and Carthage.

CocoaPods

Add Dalton to your Podfile

pod 'Dalton'

Carthage

Carthage is supported from version 0.0.3 onwards. Add Dalton to your Cartfile.

github "dcaunt/Dalton"

Contact

@dcaunt

License

MIT. See LICENSE for more details.

About

A simple RSS & Atom feed parser

License:MIT License


Languages

Language:Objective-C 76.6%Language:Shell 18.7%Language:Ruby 2.8%Language:Awk 1.9%