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