JauzziParser 1.0.1

JauzziParser 1.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2018
SPMSupports SPM

Maintained by Mirko Justiniano.



  • By
  • Mirko Justiniano

JauzziParser

An RSS Feed Parser written in Swift.

cocoapods compatible cocoapods compatible language documentation

Requirements

ios xcode

Installation

CocoaPods

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate JauzziParser into your Xcode project, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
use_frameworks!

target 'MyApp' do
  pod 'JauzziParser'
end

Then, run the following command:

$ pod install

Usage

import JauzziParser

JauzziParser.sharedInstance.fetchRss(url: "https://senalesdelfin.com/rss/") { [weak self] entries in
                print(entries)
            }

Entry Model

for entry:JEntry in entries {
  print(entry.link) // The entry url as a string
  print(entry.title) // The entry title as a string
  print(entry.description) // The entry summary/snippet as a string
  print(entry.pubDate) // The entry published date as a string
  print(entry.publishedDate) // Then entry published date as a Date
  print(entry.categories) // The entry's categories tag as an array of strings [String]
  print(entry.mediaContent) // The entry's hero image as a string url
  }
  

License

JauzziParser is released under the MIT license. See LICENSE for details.