From b6122003814082b1d631924350a6ebf86ed557be Mon Sep 17 00:00:00 2001 From: Floke Date: Fri, 11 Jul 2025 14:00:15 +0000 Subject: [PATCH] dealfront_enrichment.py aktualisiert --- dealfront_enrichment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dealfront_enrichment.py b/dealfront_enrichment.py index 19ba3270..dbe2db7b 100644 --- a/dealfront_enrichment.py +++ b/dealfront_enrichment.py @@ -168,7 +168,7 @@ class DealfrontScraper: try: # === FINALER, EINFACHER SELEKTOR === # Finde den LETZTEN 'a'-Tag, der NICHT die Klasse 'disabled' hat. - next_button_selector = (By.XPATH, "//nav[contains(@class, 'eb-pagination')]//a[contains(@class, 'eb-pagination-button') and .//svg/path[@d='M8.293 5.293a1 1 0 011.32-.083l.094.083 6 6a1 1 0 01.083 1.32l-.083.094-6 6a1 1 0 01-1.497-1.32l.083-.094L13.585 12 8.293 6.707a1 1 0 01-.083-1.32l.083-.094z']]") + next_button_selector = (By.XPATH, "//nav[contains(@class, 'eb-pagination')]//a[contains(@class, 'eb-pagination-button') and .//svg and not(contains(@class, 'disabled'))]") next_button = self.wait.until(EC.element_to_be_clickable(next_button_selector)) # Sicherheitscheck: Wenn der Button keine Pfeil-Grafik enthält, sind wir am Ende.