From b6bc2176d711c3afa5877b76eb5595278ae87559 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Thu, 18 May 2023 15:12:39 +0200 Subject: [PATCH] Add files via upload --- fix_english_publication_headers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fix_english_publication_headers.py b/fix_english_publication_headers.py index 6cf2a34..b241209 100644 --- a/fix_english_publication_headers.py +++ b/fix_english_publication_headers.py @@ -20,7 +20,7 @@ from content.press_save_button import press_save_button import time -page_id: int = 59589 +page_id: int = 59285 base_url: str = "https://www.uni-bremen.de" zfn_password: str = getpass() @@ -49,6 +49,7 @@ page_url_base = get_layout_url(driver, base_url) print(f"Go to page {int(page_id)}") page_url: str = page_url_base + f"&id={int(page_id)}" driver.get(page_url) +time.sleep(1) # Get content from page content_id, content_type, urls = get_content_list(driver) @@ -58,6 +59,7 @@ for i in range(0, len(content_type)): if content_type[i] == "textmedia": interesting_content_ids.append(content_id[i]) +time.sleep(1) english_ids: list = [] for id in interesting_content_ids: if is_english_content(driver, id) is True: