extractProductInfo method

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

Extracts product information from HTML

html is the HTML content to parse

Implementation

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