MemoryEfficientParser class

A memory-efficient HTML parser for large documents

Constructors

MemoryEfficientParser.new({ScrapingLogger? logger})
Creates a new MemoryEfficientParser 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

extractData({required String html, required String selector, String? attribute, bool asText = true, int chunkSize = 1024 * 1024}) List<String>
Parses HTML content and extracts data using CSS selectors in a memory-efficient way
extractStructuredData({required String html, required Map<String, String> selectors, Map<String, String?>? attributes, int chunkSize = 1024 * 1024}) List<Map<String, String>>
Parses HTML content and extracts structured data using CSS selectors in a memory-efficient way
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