From c1e45cc67168999ef4fe4a0f3a328e93d5f55acf Mon Sep 17 00:00:00 2001 From: Floke Date: Fri, 11 Jul 2025 13:53:38 +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 5ebc6b5d..19ba3270 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[not(contains(@class, 'disabled'))])[last()]") + 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 = self.wait.until(EC.element_to_be_clickable(next_button_selector)) # Sicherheitscheck: Wenn der Button keine Pfeil-Grafik enthält, sind wir am Ende.