naprawa
This commit is contained in:
parent
171f7b1a35
commit
95c2632f76
6
gorky.py
6
gorky.py
@ -41,7 +41,9 @@ try:
|
||||
# sleep na ladowanie strony
|
||||
sleep(5)
|
||||
print("Zalogowano")
|
||||
pages_count = [f"?page={i}" for i in range(1, 35)]
|
||||
|
||||
# Poprawiona generacja stron - użycie pageNum zamiast page
|
||||
pages_count = [f"index.php?pageNum={i}" for i in range(0, 35)] # Zmiana z range(1, 35) na range(0, 35)
|
||||
base_url = "https://www.gorkycatalogue.org/catalogue/"
|
||||
|
||||
# zbieranie danych
|
||||
@ -76,7 +78,7 @@ try:
|
||||
title_tag = soup.find("div", class_="tombstone div_Title")
|
||||
artwork_info["title"] = title_tag.text.strip('()[]') if title_tag else None
|
||||
|
||||
artwork_info["author"] = "Arshile Gorky"
|
||||
artwork_info["name_of_artist"] = "Arshile Gorky"
|
||||
|
||||
# data
|
||||
date_tag = soup.find("div", class_="tombstone div_fullDate")
|
||||
|
Loading…
Reference in New Issue
Block a user