Latest 0.1.0
Homepage https://github.com/younata/Lepton
License MIT
Platforms ios 8.3, requires ARC
Frameworks XCTest

Lepton

OPML parser written in swift 2.0.

Carthage compatible Travis CI

Usage

import Lepton

let myOPMLFile = String(contentsOfURL: "https://example.com/feeds.opml", encoding: NSUTF8StringEncoding)
let parser = Parser(string: myOPMLFile)

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

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

Lepton supports standard rss/atom feeds, as well as rNews-style query feeds (javascript that can be used to construct a meta feed consisting of articles from other feeds).

Lepton is used with Muon in rNews, but they are independent of each other.

Installing

Carthage

Swift 2.0:

  • add github "younata/Lepton"

CocoaPods

Make sure that user_frameworks! is defined in your Podfile

Swift 2.0:

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

ChangeLog

0.1.0

  • Initial release.

License

MIT

Latest podspec

{
    "name": "Lepton",
    "version": "0.1.0",
    "summary": "An RSS/Atom Parser in Swift.",
    "homepage": "https://github.com/younata/Lepton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "Rachel Brindle",
    "platforms": {
        "ios": "8.3"
    },
    "source": {
        "git": "https://github.com/younata/Lepton.git",
        "tag": "v0.1.0"
    },
    "source_files": [
        "Lepton",
        "Lepton/**/*.{swift,h,m}"
    ],
    "frameworks": "XCTest",
    "requires_arc": true
}

Pin It on Pinterest

Share This