MCPcopy Index your code
hub / github.com/unclecode/crawl4ai / extract_xml_data

Function extract_xml_data

crawl4ai/utils.py:780–791  ·  view source on GitHub ↗
(tags, string)

Source from the content-addressed store, hash-verified

778 return list(set(tags))
779
780def extract_xml_data(tags, string):
781 data = {}
782
783 for tag in tags:
784 pattern = f"<{tag}>(.*?)</{tag}>"
785 match = re.search(pattern, string, re.DOTALL)
786 if match:
787 data[tag] = match.group(1).strip()
788 else:
789 data[tag] = ""
790
791 return data
792
793# Function to perform the completion with exponential backoff
794def perform_completion_with_backoff(

Callers 3

extract_blocksFunction · 0.85
extract_blocks_batchFunction · 0.85
extractMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…