WebParser class

Processes scraped HTML data using configurable parsers to extract structured information.

This class is the core of the data extraction system. It:

  • Manages a hierarchy of parsers based on parent-child relationships
  • Executes parsers in the correct order (root parsers first, then children)
  • Handles both single and multiple data extraction scenarios
  • Applies transformations and cleaning to extracted data
  • Maintains private parser data for internal processing

The parser system uses a tree structure where child parsers depend on their parent parsers' output, allowing for complex nested data extraction.

Constructors

WebParser.new()

Properties

extractedData Map<String, Object>
Internal storage for extracted data during parsing process.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse({required Data scrapedData, required ScraperConfig scraperConfig, bool debug = false, ProxyAPIConfig? overrideProxyAPIConfig}) Future<Map<String, Object>>
Main entry point for parsing scraped HTML data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited