dealfront_enrichment.py aktualisiert

This commit is contained in:
2025-07-11 14:00:15 +00:00
parent 00ac5fa245
commit 60f12059ea

View File

@@ -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.