ComfyUI > Nodes > ComfyUI 1hewNodes > Text Custom Extract

ComfyUI Node: Text Custom Extract

Class Name

1hew_TextCustomExtract

Category
1hewNodes/text
Author
1hew (Account age: 1113days)
Extension
ComfyUI 1hewNodes
Latest Updated
2026-04-17
Github Stars
0.03K

How to Install ComfyUI 1hewNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI 1hewNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 1hewNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Text Custom Extract Description

Extracts and parses structured data from text, focusing on JSON-like structures for AI tasks.

Text Custom Extract:

The 1hew_TextCustomExtract node is designed to facilitate the extraction and parsing of structured data from text inputs, specifically focusing on JSON-like structures. This node is particularly useful for AI artists and developers who need to process and analyze text data that may contain embedded JSON or list structures. By leveraging custom parsing methods, the node can handle loosely formatted data, making it robust against variations in input text. Its primary goal is to clean and extract meaningful data from text, enabling users to work with structured information even when the input is not perfectly formatted. This capability is essential for tasks that involve data extraction from unstructured sources, allowing for more flexible and efficient data processing workflows.

Text Custom Extract Input Parameters:

json_data

The json_data parameter is a string input that represents the text from which you want to extract structured data. This text may contain JSON-like structures or lists that need to be parsed. The function of this parameter is to provide the raw data that the node will process. There are no specific minimum or maximum values, but the text should be formatted in a way that includes recognizable JSON or list structures for optimal results.

key

The key parameter is a string that specifies the particular key or label you are interested in extracting from the JSON-like structure within the text. This parameter allows you to target specific pieces of data within the larger structure, making it easier to retrieve relevant information. There are no predefined options, as the key should match the labels used within your data.

precision_match

The precision_match parameter is a string that determines the level of precision required when matching keys within the JSON-like structure. This parameter impacts how strictly the node will adhere to exact key matches, which can affect the accuracy and relevance of the extracted data. Options for this parameter may include different levels of precision, such as exact or loose matching, though specific options are not detailed in the context.

label_filter

The label_filter parameter is a string used to filter the extracted data based on specific labels or criteria. This parameter helps refine the output by excluding unwanted data and focusing on the most relevant information. The function of this parameter is to enhance the specificity of the data extraction process, though specific filtering options are not detailed in the context.

Text Custom Extract Output Parameters:

NodeOutput

The NodeOutput parameter is the primary output of the node, which contains the extracted and parsed data from the input text. This output is crucial as it provides the structured information that can be used for further analysis or processing. The interpretation of this output depends on the input parameters and the structure of the input text, but it generally represents a cleaned and organized version of the data extracted from the text.

Text Custom Extract Usage Tips:

  • Ensure that your input text contains recognizable JSON or list structures to maximize the effectiveness of the node's parsing capabilities.
  • Use the key parameter to target specific data points within your text, which can help streamline the extraction process and focus on the most relevant information.
  • Experiment with the precision_match parameter to find the right balance between strict and loose matching, depending on the consistency of your input data.

Text Custom Extract Common Errors and Solutions:

Parsing Error

  • Explanation: This error occurs when the input text does not contain recognizable JSON or list structures, or if the structures are too malformed for the node to parse.
  • Solution: Ensure that your input text is formatted correctly with clear JSON or list structures. Consider pre-processing the text to clean up any obvious formatting issues before using the node.

Key Not Found

  • Explanation: This error happens when the specified key does not exist within the parsed data structure.
  • Solution: Double-check the key parameter to ensure it matches the labels used within your data. If necessary, adjust the precision_match parameter to allow for more flexible key matching.

Text Custom Extract Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI 1hewNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Text Custom Extract