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

Function data_list

Chinese_FlashCard/app/models.py:23–28  ·  view source on GitHub ↗

match tag with find_all method return :: string list

(soup=transform_data())

Source from the content-addressed store, hash-verified

21
22
23def data_list(soup=transform_data()) -> list:
24 """ match tag with find_all method
25 return :: string list
26 """
27 new_char = soup.find_all(cfg['html_tag'])
28 return [sino.get_text() for sino in new_char ]
29
30def create_dictionary(datalist=data_list()) -> dict:
31 """ slice every 4 items

Callers 1

create_dictionaryFunction · 0.85

Calls 1

transform_dataFunction · 0.85

Tested by

no test coverage detected