ecommerce_pipeline_component_accessor_generator
v0.0.10
Published
Accessor aggregator has ability to parse a HTML page and find N available unique selectors for multiple elements in a specific scope
Readme
Ecommerce pipeline component accessor generator
Accessor aggregator has ability to parse a HTML page and find N available unique selectors for multiple elements in a specific scope
Docker Supports
How to build an image
docker build -t ecommerce-pipeline/component-accessor-generator .
Input
input (required)
/path-to-file/input.json{
quantity?: number // defines amount of selectors to generate
selectors: string[] // represents the elements we should be oriented on
scope: string // represents a selector, which should be consider as scope to find main element
}source (required)
Represents a file path of the HTML page with the DOM
output (optional)
Represents a output file, to which json response could be saved
/path-to-file/output.jsonOutput
[
{
selector: '.s-1',
details: [
{
rule: '.s-1',
level: 0
}
]
},
{
selector: '.p-1 .s-2',
details: [
{
rule: '.s-2',
level: 0
},
{
rule: '.p-1',
level: 1
}
]
}
]