SLLRSSParser is a simple RSS parser for Objective-C with ARC and blocks.
The best and easiest method to install and use SLLRSSParser is with CocoaPods. You simply add this line to your Podfile:
pod 'SLLRSSParser'
You need to have TBXML copied into the solution. Copy everything from the TBXML-Code and TBXML-Headers folders.
Then, you need to copy all the SLLRSSParser files:
- SLLRSSParser.h / .m
- SLLRSSEntry.h / .m
(see demo XCode project in /SLLRSSParserDemo
)
SLLRSSParser *parser = [[SLLRSSParser alloc] initWithFeedUrlString:@"http://www.sebleclerc.ca/feed"];
[parser parseRSSFeed:^(NSArray *listFeedItems){
//Do things
}];
The return block does not return on main thread, so you need to return to it before updating the UI.
SLLRSSParser is brought to you by Seb Leclerc. If you have feature, bug or comments, feel free to open an issue or contact me.
Thanks to Sam Vermette for his SVProgressHUD component in the Demo app.