Group more filters into one
Server as an umbrella for filters which are conceptually extracting the
same thing - for example a price or a title or …
Sometimes the same piece of information can not be extracted with one
filter across more result instances (for example a price has an XPath in
record n, but since in record n+1 has a discount price as well, the real
price is pushed to a different XPath etc) - in this case the more filters
which extract the same thing are hold in the same pattern.
| Constants |
| PATTERN_OPTIONS |
These options can be set upon wrapper creation
|
| VALID_OPTIONS |
|
| VALID_OUTPUT_TYPES |
Model pattern are shown in the output
|
| VALID_PATTERN_TYPES |
# a root pattern represents a (surprise!) root pattern PATTERN_TYPE_ROOT =
:PATTERN_TYPE_ROOT # a tree pattern represents a HTML region
PATTERN_TYPE_TREE = :PATTERN_TYPE_TREE # represents an attribute of the
node extracted by the parent pattern PATTERN_TYPE_ATTRIBUTE =
:PATTERN_TYPE_ATTRIBUTE # represents a pattern which filters its output
with a regexp PATTERN_TYPE_REGEXP = :PATTERN_TYPE_REGEXP # represents a
pattern which crawls to the detail page and extracts information from there
PATTERN_TYPE_DETAIL_PAGE = :PATTERN_TYPE_DETAIL_PAGE # represents a
download pattern PATTERN_TYPE_DOWNLOAD = :PATTERN_TYPE_DOWNLOAD # write out
the HTML subtree beginning at the matched element PATTERN_TYPE_HTML_SUBTREE
= :PATTERN_TYPE_HTML_SUBTREE
|
<code/>and<pre/>for code samples.