Skip to content

Commit

Permalink
Update league to Settlers
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Jul 26, 2024
1 parent c5a1568 commit 81cbf41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data:
league: Necropolis
league: Settlers

# Ignored maps
ignored:
Expand Down
6 changes: 3 additions & 3 deletions data/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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")

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 81cbf41

Please sign in to comment.