From 81cbf41018a90476699cda480e7748e347fb6d7d Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Fri, 26 Jul 2024 21:23:26 +0200 Subject: [PATCH] Update league to Settlers Signed-off-by: Tomas Slusny --- data/config.yaml | 2 +- data/main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/config.yaml b/data/config.yaml index d74e0793..2527cc25 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -1,5 +1,5 @@ data: - league: Necropolis + league: Settlers # Ignored maps ignored: diff --git a/data/main.py b/data/main.py index 0ed08354..b57d15d0 100644 --- a/data/main.py +++ b/data/main.py @@ -104,7 +104,7 @@ def get_globals_data(config): url = config["poedb"]["list"] print(f"Getting atlas data from url {url}") - r = requests.get(url) + r = requests.get(url, allow_redirects=True) soup = BeautifulSoup(r.content, "html.parser") atlasimage = soup.find(id="AtlasNodeSVG").find("image") @@ -115,7 +115,7 @@ def get_globals_data(config): url = config["poedb"]["constants"] print(f"Getting game constants from url {url}") - r = requests.get(url) + r = requests.get(url, allow_redirects=True) soup = BeautifulSoup(r.content, "html.parser") dropoollist = soup.find(id="DropPool").find("table").find("tbody").find_all("tr") @@ -582,7 +582,7 @@ def get_maps(key, config): url = config["poedb"]["list"] print(f"Getting atlas data from url {url}") - r = requests.get(url) + r = requests.get(url, allow_redirects=True) soup = BeautifulSoup(r.content, "html.parser") mapssvg = soup.find(id="AtlasNodeSVG") maplinks = mapssvg.find_all("a")