Carter is a simple Swift Library for retrieving Open Graph or metadata information from websites.
Based on Awkward/Ocarina Library.
You can use The Swift Package Manager (SPM) to install Carter by going to "Project->NameOfYourProject->Swift Packages" and placing "https://github.com/jaysonng/Carter.git" in the search field.
- Swift 5.5
- iOS 15
- Kanna
import Carter
let url = URL(string: url)!
do {
let urlInformation = try await url.carter.getURLInformation()
// Do stuff here with the URLInformation object
} catch let error as CarterError {
// No URLInformation object retrieved.
print(error.description)
}
"You know, you blow up one sun and suddenly everyone expects you to walk on water."
— Lt. Col. Samantha Carter
SG-1