MCPcopy Create free account
hub / github.com/mlco2/codecarbon / extract_text_from_url

Function extract_text_from_url

examples/ollama_local_api.py:31–37  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

29
30
31def extract_text_from_url(url):
32 response = requests.get(url)
33 if response.status_code == 200:
34 cleaned_text = re.sub(r"<[^>]+>", "", response.text)
35 return cleaned_text
36 else:
37 response.raise_for_status()
38
39
40url = "https://www.assemblee-nationale.fr/dyn/opendata/CRCANR5L17S2025PO59046N030.html"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…