extractSmartContent method
Extract all common content types automatically using smart extraction
This method automatically detects and extracts:
- Page title
- Meta description
- Main content
- Author information
- Publication date
- Images, links, emails, phone numbers, prices
- Open Graph metadata
Example:
final content = scraper.extractSmartContent();
print('Title: ${content.title}');
print('Description: ${content.description}');
print('Images found: ${content.images.length}');
Implementation
SmartContent extractSmartContent() {
if (_htmlContent == null) {
throw ScraperNotInitializedException();
}
return SmartExtractor.extractAll(_htmlContent!);
}