MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fetch

Function fetch

assets/generate-language-tiles.py:101–104  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

99
100
101def fetch(url):
102 req = urllib.request.Request(url, headers={"User-Agent": "codegraph-assets"})
103 with urllib.request.urlopen(req, timeout=20) as r:
104 return r.read().decode("utf-8")
105
106
107class Outliner:

Callers 2

si_glyphFunction · 0.70
devicon_glyphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected