Skip to content
pubscout

ogp_data_extract

0.2.2, released a year ago by an unverified publisher

Extracts Open Graph protocol metadata and favicons from web pages.

WASM-ready
$ flutter pub add ogp_data_extract
Source repository

What it does

Extracts Open Graph metadata items like titles, descriptions, images, and geolocation fields from HTML web pages or raw HTML documents. It also provides functionality to fetch favicon URLs.

AI-written summary of version 0.2.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to extract Open Graph metadata from URLs for link previews.
  • You want to fetch all available favicon URLs from a webpage.

Skip it when

  • You need a complex web scraper or full DOM manipulation library beyond metadata extraction.

Strengths

  • Comprehensive coverage of Open Graph protocol fields.
  • Supports custom User-Agent headers.
  • Includes favicon extraction capabilities.

Weaknesses

  • Limited strictly to Open Graph and favicon extraction.
  • Depends on the structure and presence of meta tags on target web pages.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Not documented

void main() async {
    const String url = 'https://pub.dev/';
    final OgpData? ogpData = await OgpDataExtract.execute(url);
    print(ogpData?.title);
}

Alternatives

Packages that do the same job and could replace ogp_data_extract.

Works with

Packages commonly used together with ogp_data_extract: ones it builds on, ones built on it, and its own family.