|
|
|
|
@ -138,17 +138,6 @@ def __find_indiv(xml_soup, role: str, indiv_lst: list)-> None:
|
|
|
|
|
dukes = prince.find_all("person")
|
|
|
|
|
for duke in dukes:
|
|
|
|
|
indiv_lst.append(duke.text.replace("\n", ""))
|
|
|
|
|
"""
|
|
|
|
|
def _create_individual(xml_file: str, folder: str)-> None:
|
|
|
|
|
indiv_prince = []
|
|
|
|
|
indiv_secret = []
|
|
|
|
|
for acte in os.listdir(folder):
|
|
|
|
|
soup = make_soup(os.path.join(folder, acte))
|
|
|
|
|
__find_indiv(soup, "prince", indiv_prince)
|
|
|
|
|
__find_indiv(soup, "signatory", indiv_secret)
|
|
|
|
|
print(set(indiv_secret))
|
|
|
|
|
print(set(indiv_prince))
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
def __indiv_infos(indiv_type):
|
|
|
|
|
with open(os.path.join(APPPATH, "static", "csv", "actors.csv"), 'r', encoding="utf-8") as opening:
|
|
|
|
|
|