MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / fetch_and_convert

Function fetch_and_convert

scripts/fetch_standards_overview.py:26–32  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

24
25
26def fetch_and_convert(url: str) -> str:
27 resp = requests.get(url, headers=HEADERS, timeout=30)
28 resp.raise_for_status()
29 h = html2text.HTML2Text()
30 h.ignore_links = False
31 h.body_width = 0
32 return h.handle(resp.text)
33
34
35def extract_iso_content(md: str, title: str, url: str) -> str:

Callers 1

process_standardFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected