diff --git a/src/gomus/_utils/scrape_gomus.py b/src/gomus/_utils/scrape_gomus.py index abe1cd37..af6d629a 100644 --- a/src/gomus/_utils/scrape_gomus.py +++ b/src/gomus/_utils/scrape_gomus.py @@ -111,8 +111,11 @@ def run(self): # Language bookings.loc[i, 'language'] = self.parse_text( booking_details, - "div[contains(div[1]/dl[2]/dt/text(),'Sprache')]" - "/div[1]/dl[2]/dd").strip() + ''' + div/div[1]/dl[2]/dd[ + contains(preceding-sibling::dt[1]/text(), 'Sprache') + ]''' + ).strip() try: customer_details = tree_details.xpath(