Add files via upload
This commit is contained in:
parent
06ca16a1b0
commit
b6bc2176d7
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,7 @@ from content.press_save_button import press_save_button
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
page_id: int = 59589
|
page_id: int = 59285
|
||||||
base_url: str = "https://www.uni-bremen.de"
|
base_url: str = "https://www.uni-bremen.de"
|
||||||
|
|
||||||
zfn_password: str = getpass()
|
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)}")
|
print(f"Go to page {int(page_id)}")
|
||||||
page_url: str = page_url_base + f"&id={int(page_id)}"
|
page_url: str = page_url_base + f"&id={int(page_id)}"
|
||||||
driver.get(page_url)
|
driver.get(page_url)
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
# Get content from page
|
# Get content from page
|
||||||
content_id, content_type, urls = get_content_list(driver)
|
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":
|
if content_type[i] == "textmedia":
|
||||||
interesting_content_ids.append(content_id[i])
|
interesting_content_ids.append(content_id[i])
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
english_ids: list = []
|
english_ids: list = []
|
||||||
for id in interesting_content_ids:
|
for id in interesting_content_ids:
|
||||||
if is_english_content(driver, id) is True:
|
if is_english_content(driver, id) is True:
|
||||||
|
|
Loading…
Reference in a new issue