A simple RSS & Atom feed parser, built upon Ono.
Requires Xcode 6.
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);
}
Dalton supports both CocoaPods and Carthage.
Add Dalton to your Podfile
pod 'Dalton'
Carthage is supported from version 0.0.3 onwards. Add Dalton to your Cartfile
.
github "dcaunt/Dalton"
MIT. See LICENSE for more details.