extractArticleInfo method

List<Map<String, dynamic>> extractArticleInfo(
  1. String html
)

Extracts article information from HTML

html is the HTML content to parse

Implementation

List<Map<String, dynamic>> extractArticleInfo(String html) {
  try {
    return _structuredDataExtractor.extractArticles(html);
  } catch (e) {
    _logger.error('Failed to extract article information: $e');
    return [];
  }
}