Swiftpack.co - jaysonng/Carter as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jaysonng.
jaysonng/Carter 0.1.0
Carter is a Swift Library for retreiving Metadata and Open Graph information from URLs. Based on Awkward/Ocarina.
⭐️ 1
🕓 6 days ago
iOS
.package(url: "https://github.com/jaysonng/Carter.git", from: "0.1.0")

Carter

Carter is a simple Swift Library for retrieving Open Graph or metadata information from websites.
Based on Awkward/Ocarina Library.

Installation

Swift Package Manager

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.

Requirements

  • Swift 5.5
  • iOS 15
  • Kanna

Synopsis

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)
    
}

Stargate SG-1

"You know, you blow up one sun and suddenly everyone expects you to walk on water."
— Lt. Col. Samantha Carter
SG-1

GitHub

link
Stars: 1
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

v0.1.0
6 days ago

Still on pre-release. Usable to get information from working URL's.

Need to fix error handling.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics