Step
public protocol Step
Represents a step which is performed as part of the scraping pipeline flow.
The StepRunner will execute each step by calling the run() method,
and using the result of the callback to determine what to do next.
-
Execute the step.
When all work is done, the
completionshould be called, and indicate what to do next (i.e. control flow instruction).Declaration
Swift
func run(with browser: Browser, model: JSON, completion: @escaping StepCompletionCallback)Parameters
browserThe
Browserused for web scraping.modelA JSON model that allows data to be passed from step to step in the pipeline.
completionThe completion called to indicate what to do next (i.e. control flow instruction). The JSON model must be passed back here, to pass onto the next step.
View on GitHub
Install in Dash