From 103be50ef00822e90a264ee0f7fbae15d6a863fb Mon Sep 17 00:00:00 2001 From: jgenero Date: Tue, 11 Oct 2022 18:47:13 +0200 Subject: [PATCH] update --- app/xml_data.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/xml_data.py b/app/xml_data.py index 59b26fd..e0ed7b3 100644 --- a/app/xml_data.py +++ b/app/xml_data.py @@ -6,11 +6,12 @@ def make_soup(file): return xml def get_places(file): + places_xtract = [] soup = make_soup(file) for div in soup.find_all('div', {'xml:id': True}): - print(div['n']) for place in div.find_all('placeName', {'type': 'production_place'}): - print(place.text) + production_places.append(place.text) + print(set(places_xtract)) def get_archives(file): @@ -20,4 +21,4 @@ def get_archives(file): -get_archives("../bourbon-latex/charles-actes-latex.xml") +get_places("../bourbon-latex/charles-actes-latex.xml")