MCPcopy Create free account
hub / github.com/LLMQuant/quant-mind / _extract_sync

Function _extract_sync

quantmind/preprocess/format/html.py:13–22  ·  view source on GitHub ↗
(html: str, *, strip_boilerplate: bool)

Source from the content-addressed store, hash-verified

11
12
13def _extract_sync(html: str, *, strip_boilerplate: bool) -> str:
14 extracted = trafilatura.extract(
15 html,
16 output_format="markdown",
17 include_links=True,
18 include_images=False,
19 include_tables=True,
20 favor_recall=not strip_boilerplate,
21 )
22 return extracted or ""
23
24
25async def html_to_markdown(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected