MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / HTMLReader

Class HTMLReader

KVCOMM/tools/reader/readers.py:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 return data
110
111class HTMLReader(Reader):
112 def parse(self, file_path: Path) -> str:
113 logger.info(f"Reading HTML file from {file_path}.")
114 with open(file_path, "r") as f:
115 data = BeautifulSoup(f, "html.parser")
116 text = data.get_text()
117 return text
118
119class MarkdownReader(Reader):
120 def parse(self, file_path: Path) -> str:

Callers 1

readers.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected