URLPreview alternatives and similar libraries
Based on the "XML / HTML / CSV" category.
Alternatively, view URLPreview alternatives based on common mentions on social networks and blogs.
-
Fuzi
A fast & lightweight XML & HTML parser in Swift with XPath & CSS support -
WKZombie
WKZombie is a Swift framework for iOS/OSX to navigate within websites and collect data without the need of User Interface or API, also known as Headless browser. It can be used to run automated tests / snapshots and manipulate websites using Javascript. -
AlamofireXmlToObjects
Fetch a XML feed and parse it into objects
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of URLPreview or a related project?
README
URLPreview
An NSURL extension for showing preview info of webpages.
You may want to use it if you want to mimick Facebook app's behavior when you post a link on your status.
Requirements
- Swift 5 & Xcode 10.2
- This library depends on Kanna
Usage
Pretty simple, all you need is a block:
if let url = NSURL(string: urlTextField.text!) {
url.fetchPageInfo({ (title, description, previewImage) -> Void in
// do whatever you want here
}, failure: { (errorMessage) -> Void in
print(errorMessage)
})
} else {
print("Invalid URL!")
}
Contributing
Contributions for bug fixing or improvements are welcome. Feel free to submit a pull request.
Licence
URLPreview is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the URLPreview README section above
are relevant to that project's source code only.