DeplovsBrothers / Muon

Atom/RSS parser written in swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##Muon

RSS/Atom parser written in swift.

Carthage compatible Build Status

###Usage

import Muon

let myRSSFeed = String(contentsOfURL: "https://example.com/feed.rss", encoding: NSUTF8StringEncoding)
let parser = FeedParser(string: myRSSFeed)

parser.success {
    print("Parsed: \($0)")
}
parser.failure {
    print("Failed to parse: \($0)")
}

parser.main() // or add to an NSOperationQueue

###Installing

####Carthage

Swift 2.0:

  • add github "younata/Muon"

Swift 1.2:

  • add github "younata/Muon" "0.3.1"

####Cocoapods

Make sure that user_frameworks! is defined in your Podfile

Swift 2.0:

  • add Pod "Muon" :git => "https://github.com/younata/Muon.git"

Swift 1.2:

  • add Pod "Muon" :git => "https://github.com/younata/Muon.git", :tag => "v0.3.1"

###ChangeLog

0.4.0

  • Swift 2.0 Compatibility
  • Enabled for use in extensions
  • Not obj-c compatible anymore (sorry)
  • Less strict on parsing feeds
  • Enabled bitcode

0.3.1

  • Last Swift 1.2 release

0.3.0

  • Add objc support
  • Enable whole module optimization

0.2.0

  • Make FeedParser more injector-friendly

0.1.1

  • Makes Public initializers for Feed and Article

0.1.0

  • Initial support for RSS 1.0, RSS 2.0, and Atom feeds

License

MIT

About

Atom/RSS parser written in swift.

License:MIT License


Languages

Language:Swift 60.0%Language:HTML 38.4%Language:Ruby 1.3%Language:Objective-C 0.4%