Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 1.91 KB

README.md

File metadata and controls

77 lines (56 loc) · 1.91 KB

opengrapher

License Maven Central

OpenGrapher is a small utility library for fetching and processing Open Graph information from webpages.

Simply point it towards an url, and it will fetch and process any Open Graph meta tags it encounters.

val graph = OpenGrapher.fetch(HttpUrl("https://github.com/hrafnthor/opengrapher"))

There is also the option of having the graph returned via a monad

OpenGrapher.fetchResult(HttpUrl("https://github.com/hrafnthor/opengrapher"))
    .onSuccess {
        // Use resulting graph
    }
    .onFailure {
        // Respond to failure
    }

It is that simple.

Download

repositories {
  mavenCentral()
}

dependencies {
  implementation 'is.hth:opengrapher:0.0.3'
}
Snapshot from the latest development version are available at Sonatype's snapshot repository

repositories {
  mavenCentral()
  maven {
    url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
  }
}

dependencies {
  implementation 'is.hth:opengrapher:0.0.4-SNAPSHOT'
}

License

Copyright 2023 Hrafn Thorvaldsson

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.