ogp_data_extract
0.2.2, released a year ago by an unverified publisher
Extracts Open Graph protocol metadata and favicons from web pages.
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.
- ordered_set
Ordered Set that keeps elements sorted and allows duplicates by priority.
82Compare - data_assets
Protocol specification for bundling data assets with Dart and Flutter packages using build hooks.
83Compare - flutter_open_chinese_convert
Bridges OpenCC to Flutter for converting Simplified/Traditional Chinese text.
70Compare - rate_us_on_store
Open an app’s Play Store or App Store page from a Flutter app
43Compare
Works with
Packages commonly used together with ogp_data_extract: ones it builds on, ones built on it, and its own family.