From a1e6c88cb942ec1694b43699f1226e2cea2014e3 Mon Sep 17 00:00:00 2001 From: Floke Date: Wed, 16 Jul 2025 18:23:44 +0000 Subject: [PATCH] scrape_fotograf.py aktualisiert --- scrape_fotograf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scrape_fotograf.py b/scrape_fotograf.py index 1d0b6f16..29a571a7 100644 --- a/scrape_fotograf.py +++ b/scrape_fotograf.py @@ -16,7 +16,7 @@ OUTPUT_DIR = 'output' OUTPUT_FILE = os.path.join(OUTPUT_DIR, 'nutzer_ohne_logins.csv') LOGIN_URL = 'https://app.fotograf.de/login/login' -# --- Selektoren (FINALE, VOLLSTÄNDIGE VERSION) --- +# --- Selektoren --- SELECTORS = { "cookie_accept_button": "#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll", "login_user": "#login-email", @@ -231,9 +231,10 @@ def main(): credentials = get_profile_choice() if not credentials: return - # GEÄNDERT: URL-Eingabe wird bereinigt + # GEÄNDERT: URL-Eingabe wird explizit von "Bracketed Paste" Codes bereinigt job_url_raw = input("Bitte gib die URL des zu bearbeitenden Fotoauftrags ein (Einstellungs-Seite): ") - job_url = job_url_raw.strip() + job_url_cleaned = job_url_raw.replace("\x1b[200~", "").replace("\x1b[201~", "") + job_url = job_url_cleaned.strip() if "fotograf.de/config_jobs_settings/index/" not in job_url: print("Dies scheint keine gültige URL für die Auftragseinstellungen zu sein.")