Coder Social home page Coder Social logo

rsskit's Introduction

RSSKit


RSSKit is an easy-to use iOS framework to make RSS feed processing simple. It consists of only 3 small classes, so it's extremely lightweight yet powerful. It supports both the RSS 2.0 and the Atom 1.0 feed formats.


How to use the framework

  1. #import < RSSKit/RSSKit.h >
  2. Define a class which conforms to the RSSParserDelegate, i. e.:
    @interface MyParserDelegate: NSObject < RSSParserDelegate > 
  3. Instantiate an RSSParser object using an NSString with an URL containing a valid RSS/Atom feed; e. g.
    RSSParser *parser = [[RSSParser alloc] initWithUrl:@"http://example.com/feed"];
  4. Set an instance of your freshly declared delegate class as the parser's delegate, that is:
    MyParserDelegate *theDelegateObject = [[MyParserDelegate alloc] init];
    parser.delegate = theDelegateObject;
  5. Call
    [parser parse];
  6. Implement the rssParser:didParseFeed: method in your delegate class. As the 2nd parameter it'll be passed an RSSFeed instance. The properties of this class are named meaningfully; the articles property will contain an NSArray of RSSEntry objects, representing the items/summaries of the feed, respectively (this class also has obviously-named properties).
  7. You can also implement rssParserDidStartParsing: and rssParser:didFailWithError:.

rsskit's People

Contributors

cduhn avatar h2co3 avatar jameshays avatar lilfaf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.