View Source ScraperEx.Sandbox (scraper_ex v0.2.2)

Sandboxing allows you to set the return value of a specific flow

ScraperEx.Sandbox.set_run_task_result(my_flow(), %{my_result: :ok})

Link to this section Summary

Functions

Gets the results for a flow

Sets the result for a flow

Link to this section Functions

Link to this function

run_task_result(flow_config)

View Source
@spec run_task_result(flow_config :: [ScraperEx.task_config()]) :: any()

Gets the results for a flow

Link to this function

set_run_task_result(flow_config, result)

View Source
@spec set_run_task_result(
  flow_config :: [ScraperEx.task_config()],
  {:ok, any()} | {:error, any()}
) ::
  :ok

Sets the result for a flow

@spec start_link() :: {:error, any()} | {:ok, pid()}