Skip to content

sebleclerc/SLLRSSParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLLRSSParser

SLLRSSParser is a simple RSS parser for Objective-C with ARC and blocks.

Installation

Cocoapods

The best and easiest method to install and use SLLRSSParser is with CocoaPods. You simply add this line to your Podfile:

pod 'SLLRSSParser'

Manual

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

Usage

(see demo XCode project in /SLLRSSParserDemo)

SLLRSSParser *parser = [[SLLRSSParser alloc] initWithFeedUrlString:@"http://www.sebleclerc.ca/feed"];
    
[parser parseRSSFeed:^(NSArray *listFeedItems){
//Do things
}];

FAQ

The return block does not return on main thread, so you need to return to it before updating the UI.

Credits

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.

About

Simple RSS parser for Objective-C

Resources

License

Stars

Watchers

Forks

Packages

No packages published