mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2025-01-30 18:38:36 +00:00
fix: station avatar image
This commit is contained in:
parent
b37691c956
commit
66cbb25555
@ -20,7 +20,7 @@ class YattaMaterial(BaseModel):
|
||||
"""名称"""
|
||||
description: str
|
||||
"""描述"""
|
||||
story: str
|
||||
story: Optional[str] = None
|
||||
"""故事"""
|
||||
rank: int
|
||||
"""稀有度"""
|
||||
|
@ -47,7 +47,7 @@ async def parse_station(datas, name: str, tag: Tag, cid: int):
|
||||
return f'{style[style.find("(") + 1:style.find(")")]}'
|
||||
|
||||
third_pic = get_third_pic()
|
||||
text = soup.find("div", {"class": "a6678 a4af5"}).get("style")
|
||||
text = soup.find_all("div", {"class": "a4af5"})[1].get("style")
|
||||
four_pic = f'{text[text.find("(") + 2:text.find(")") - 1]}' if text else ""
|
||||
first_pic = f'{soup.find("img", {"class": "ac39b a6602"}).get("src")}'
|
||||
datas.append(
|
||||
|
Loading…
Reference in New Issue
Block a user