We are a development agency building phenomenal apps.
Extracts:
- Title
- Description
- Top image
- Top video
- Keywords
- Date
- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
let articleUrl = URL(string: "https://someurl.com/")!
Readability.parse(url: articleUrl, completion: { data in
let title = data?.title
let description = data?.description
let keywords = data?.keywords
let imageUrl = data?.topImage
let videoUrl = data?.topVideo
let datePublished = data?.datePublished
})
To run the example project, clone the repo, and run pod install
from the Example directory first.
To install ReadabilityKit
, simply add the following line to your Podfile
Swift 5.x:
pod 'ReadabilityKit'
Swift 4.x:
pod 'ReadabilityKit' '0.7.1'
Swift 3.x:
pod 'ReadabilityKit', '0.6.0'
To integrate ReadabilityKit
into your Xcode project using Carthage, specify it in your Cartfile
Swift 5.x:
github "exyte/ReadabilityKit"
Swift 4.x:
github "exyte/ReadabilityKit" == 0.7.1
Swift 3.x:
github "exyte/ReadabilityKit" == 0.6.0
- Install Ji XML parser
- Download and drop all files from Sources folder in your project
ReadabilityKit is available under the MIT license. See the LICENSE file for more info.