Giter Site home page Giter Site logo

rsskit's Introduction

RSSKit

RSSKit is an easy-to use iOS framework to make RSS feed processing simple. It consists of only 5 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 protocol, 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" synchronous:NO];

  4. Set an instance of your freshly declared deleate class as the parser's delegate, that is:

    MyParserDelegate *theDelegateObject = [[MyParserDelegate alloc] init];
    parser.delegate = theDelegateObject;
  5. Call [parser parse];

  6. Implement the rssParser:parsedFeed: 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).

rsskit's People

Contributors

h2co3 avatar jstsch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rsskit's Issues

parser doesn't load the text of the element if it's inside any other tag

This seems a little odd, but when the parser tries to parse element, if the content is wrapped inside another tag, for example "

Some content here
" it will return just "
" !
sample feed:

<title>Entry's title</title> http://www.somewebsite.com
This description won't be shown in the parsed RSSEntry.summary
Feed's category Wed, 17 Jul 2013 05:35:21 GMT GUID here dc:date2013-07-17T05:35:21Z/dc:date

How can I overcome this problem, I really need that summary!

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.