|
|
|
@ -6,11 +6,12 @@ def make_soup(file):
|
|
|
|
return xml
|
|
|
|
return xml
|
|
|
|
|
|
|
|
|
|
|
|
def get_places(file):
|
|
|
|
def get_places(file):
|
|
|
|
|
|
|
|
places_xtract = []
|
|
|
|
soup = make_soup(file)
|
|
|
|
soup = make_soup(file)
|
|
|
|
for div in soup.find_all('div', {'xml:id': True}):
|
|
|
|
for div in soup.find_all('div', {'xml:id': True}):
|
|
|
|
print(div['n'])
|
|
|
|
|
|
|
|
for place in div.find_all('placeName', {'type': 'production_place'}):
|
|
|
|
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):
|
|
|
|
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")
|
|
|
|
|