MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / fetch

Function fetch

1e_http_client/python/blocking.py:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5from person import URL, summary
6
7def fetch():
8 request = urllib.request.Request(
9 URL,
10 headers={'User-Agent': 'Mozilla/5.0 (Macintosh; M1 Mac OS X 11)'})
11 res = urllib.request.urlopen(request)
12 return json.load(res)
13
14
15def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected