StreamingHtmlParser class

A streaming HTML parser that can process HTML incrementally

Constructors

StreamingHtmlParser.new({ScrapingLogger? logger})
Creates a new StreamingHtmlParser with the given parameters

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

extractDataStream({required Stream<List<int>> htmlStream, required String selector, String? attribute, bool asText = true, int chunkSize = 1024 * 1024}) Stream<String>
Parses HTML content and extracts data using CSS selectors in a streaming fashion
extractStructuredDataStream({required Stream<List<int>> htmlStream, required Map<String, String> selectors, Map<String, String?>? attributes, int chunkSize = 1024 * 1024}) Stream<Map<String, String>>
Parses HTML content and extracts structured data using CSS selectors in a streaming fashion
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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