scrape_fotograf.py aktualisiert
This commit is contained in:
@@ -16,7 +16,7 @@ OUTPUT_DIR = 'output'
|
|||||||
OUTPUT_FILE = os.path.join(OUTPUT_DIR, 'nutzer_ohne_logins.csv')
|
OUTPUT_FILE = os.path.join(OUTPUT_DIR, 'nutzer_ohne_logins.csv')
|
||||||
LOGIN_URL = 'https://app.fotograf.de/login/login'
|
LOGIN_URL = 'https://app.fotograf.de/login/login'
|
||||||
|
|
||||||
# --- Selektoren (FINALE, VOLLSTÄNDIGE VERSION) ---
|
# --- Selektoren ---
|
||||||
SELECTORS = {
|
SELECTORS = {
|
||||||
"cookie_accept_button": "#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll",
|
"cookie_accept_button": "#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll",
|
||||||
"login_user": "#login-email",
|
"login_user": "#login-email",
|
||||||
@@ -231,9 +231,10 @@ def main():
|
|||||||
credentials = get_profile_choice()
|
credentials = get_profile_choice()
|
||||||
if not credentials: return
|
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_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:
|
if "fotograf.de/config_jobs_settings/index/" not in job_url:
|
||||||
print("Dies scheint keine gültige URL für die Auftragseinstellungen zu sein.")
|
print("Dies scheint keine gültige URL für die Auftragseinstellungen zu sein.")
|
||||||
|
|||||||
Reference in New Issue
Block a user