OPML parser written in swift.
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.
Lepton is used with Muon in rNews, but they are independent of each other.
Swift 5:
- add
github "younata/Lepton"
- Update for swift 5
- Remove support for Query Feeds
- Initial release.