An RSS Feed Parser written in Swift.
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
import JauzziParser
JauzziParser.sharedInstance.fetchRss(url: "https://senalesdelfin.com/rss/") { [weak self] entries in
print(entries)
}
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
}
JauzziParser is released under the MIT license. See LICENSE for details.