MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / extract_data

Function extract_data

Chinese_FlashCard/app/models.py:10–14  ·  view source on GitHub ↗

make a get request on url return :: html document

(url=cfg['url'])

Source from the content-addressed store, hash-verified

8 cfg = json.load(f)
9
10def extract_data(url=cfg['url']) -> str:
11 """ make a get request on url
12 return :: html document
13 """
14 return requests.get(url).text
15
16def transform_data():
17 """ parse html document

Callers 1

transform_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected