metadata_fetch 0.4.2 copy "metadata_fetch: ^0.4.2" to clipboard
metadata_fetch: ^0.4.2 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
}
101
likes
150
points
3.59k
downloads

Publisher

unverified uploader

Weekly Downloads

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-3-Clause (license)

Dependencies

html, http, string_validator

More

Packages that depend on metadata_fetch