MCPcopy
hub / github.com/unclecode/crawl4ai / NoExtractionStrategy

Class NoExtractionStrategy

crawl4ai/extraction_strategy.py:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 return extracted_content
50
51class NoExtractionStrategy(ExtractionStrategy):
52 def extract(self, url: str, html: str, *q, **kwargs) -> List[Dict[str, Any]]:
53 return [{"index": 0, "content": html}]
54
55 def run(self, url: str, sections: List[str], *q, **kwargs) -> List[Dict[str, Any]]:
56 return [{"index": i, "tags": [], "content": section} for i, section in enumerate(sections)]
57
58class LLMExtractionStrategy(ExtractionStrategy):
59 def __init__(self,

Callers 12

warmupMethod · 0.85
fetch_pageMethod · 0.85
run_oldMethod · 0.85
fetch_pagesMethod · 0.85
runMethod · 0.85
arunMethod · 0.85
warmupMethod · 0.85
fetch_pageMethod · 0.85
fetch_pagesMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…