ParserType enum
Types of parsers available for data extraction.
Each parser type has specialized logic for extracting different kinds of data from HTML, JSON, or other sources:
- element - Extract HTML elements
- attribute - Extract attribute values from HTML elements
- text - Extract text content from HTML elements
- image - Extract image URLs and metadata
- url - Extract and process URLs
- urlParam - Extract URL parameters
- table - Extract data from HTML tables
- sibling - Extract sibling elements
- strBetween - Extract text between two strings
- http - Make HTTP requests to extract data
- json - Extract and parse JSON data
- jsonld - Extract JSON-LD structured data
- jsonTable - Extract data from JSON table structures
- json5decode - Parse JSON5 format data
- staticVal - Return static values
- returnUrlParser - Return URL-based data
- empty - Return empty value, helpful for using parent data as a fallback
Values
- element → const ParserType
-
Extract HTML elements for further processing
- parentElement → const ParserType
-
Extract parent element of HTML elements
- attribute → const ParserType
-
Extract attribute values (href, src, class, etc.) from HTML elements
- text → const ParserType
-
Extract text content from HTML elements
- image → const ParserType
-
Extract image URLs, alt text, and other image metadata
- url → const ParserType
-
Extract and process URLs (absolute, relative, etc.)
- urlParam → const ParserType
-
Extract specific URL parameters
- table → const ParserType
-
Extract structured data from HTML tables
- sibling → const ParserType
-
Extract sibling elements (previous or next)
- strBetween → const ParserType
-
Extract text between two specified strings
- http → const ParserType
-
Make HTTP requests to extract data from other URLs
- json → const ParserType
-
Extract and parse JSON data from HTML or other sources
- jsonld → const ParserType
-
Extract JSON-LD structured data from HTML
- jsonTable → const ParserType
-
Extract data from JSON table structures
- json5decode → const ParserType
-
Parse JSON5 format data (JSON with comments and trailing commas)
- staticVal → const ParserType
-
Return static values without extraction
- returnUrlParser → const ParserType
-
Return URL-based data without making requests
- empty → const ParserType
-
Return empty value, helpful for using parent data as a fallback
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ParserType> - A constant List of the values in this enum, in order of their declaration.