ReadabilityKit helps you to extract a relevant metadata (for example, title, description and top image) from the URL.
The extraction goal is to try and get the best extraction from the article for servicing applications that need to show a snippet of a web article along with an image.
Inspired by goose and newspaper.
Extracts:
- Title
- Description
- Top image
- Keywords
- iOS 8.0+ / Mac OS X 10.9+
let parser = Readability(url: articleUrl)
let title = parser.title()
let description = parser.description()
let keywords = parser.keywords()
let imageUrl = parser.imageUrl()
To run the example project, clone the repo, and run pod install
from the Example directory first.
ReadabilityKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ReadabilityKit"
exyte, [email protected]
ReadabilityKit is available under the MIT license. See the LICENSE file for more info.