oghref_model 2.1.3 copy "oghref_model: ^2.1.3" to clipboard
oghref_model: ^2.1.3 copied to clipboard

discontinued
outdated

Object standarized definition with parser interface for constructing rich information of given URL among various metadata protocols.

example/main.dart

import 'package:oghref_model/model.dart';

void main() async {
  // Get instance of MetaFetch then register parser
  final MetaFetch metaFetch = MetaFetch()
    // Remark: Please register manually.
    ..register(const OpenGraphPropertyParser());

  /* 
    Retrive MetaInfo from the first supported rich information protocol
    from the first <meta> tag in sequence.
  */
  MetaInfo info = await metaFetch.fetchFromHttp(Uri.https("example.com"));

  // Print retrived data.
  print(info.title);
}
1
likes
150
points
140
downloads

Documentation

API reference

Publisher

verified publisherrk0cc.xyz

Weekly Downloads

Object standarized definition with parser interface for constructing rich information of given URL among various metadata protocols.

Repository (GitHub)
View/report issues

Topics

#fetch #http #metadata

Funding

Consider supporting this project:

github.com

License

AGPL-3.0 (license)

Dependencies

html, http, meta, mime_dart, path

More

Packages that depend on oghref_model