scrapegraphai.integrations package

Submodules

scrapegraphai.integrations.burr_bridge module

scrapegraphai.integrations.indexify_node module

IndexifyNode Module

class scrapegraphai.integrations.indexify_node.IndexifyNode(input: str, output: List[str], node_config: Optional[dict] = None, node_name: str = 'Indexify')

Bases: BaseNode

A node responsible for indexing the content present in the state.

verbose

A flag indicating whether to show print statements during execution.

Type:

bool

Parameters:
  • input (str) – Boolean expression defining the input keys needed from the state.

  • output (List[str]) – List of output keys to be updated in the state.

  • node_config (dict) – Additional configuration for the node.

  • node_name (str) – The unique identifier name for the node, defaulting to “Parse”.

execute(state: dict) dict

Executes the node’s logic to index the content present in the state.

Parameters:

state (dict) – The current state of the graph. The input keys will be used to fetch the correct data from the state.

Returns:

The updated state with the output key containing the parsed content chunks.

Return type:

dict

Raises:

KeyError – If the input keys are not found in the state, indicating that the necessary information for parsing the content is missing.

Module contents

Init file for integrations module