Dalton
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
License
MIT. See LICENSE for more details.