metadata_fetch 0.4.1
metadata_fetch: ^0.4.1 copied to clipboard

A dart library for extracting metadata on web pages such as OpenGraph, Meta, Twitter Cards, and Structured Data (Json-LD)

example/main.dart

import 'package:metadata_fetch/metadata_fetch.dart';

void main() async {
  var data = await MetadataFetch.extract(
      'https://flutter.dev'); // returns a Metadata object
  print(data); // Metadata.toString()
  print(data?.title); // Metadata.title
  print(data?.toMap()); // converts Metadata to map
  print(data?.toJson()); // converts Metadata to JSON
}
47
likes
130
pub points
87%
popularity

Publisher

Unknown

A dart library for extracting metadata on web pages such as OpenGraph, Meta, Twitter Cards, and Structured Data (Json-LD)

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

html, http, string_validator

More

Packages that depend on metadata_fetch