From 47a0a1c6dbcc585fba0836bbfe293efd3fab1257 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 29 Sep 2023 23:44:14 +0800 Subject: [PATCH] fix: station avatar third pic --- res_func/avatar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res_func/avatar.py b/res_func/avatar.py index 3f0920c..0265432 100644 --- a/res_func/avatar.py +++ b/res_func/avatar.py @@ -44,7 +44,7 @@ async def parse_station(datas, name: str, tag: Tag, cid: int): def get_third_pic(): _tag = tag.find("div", {"class": "a69d1"}) style = _tag.get("style") - return f'{base_station_url}/{style[style.find("(") + 2:style.find(")") - 1]}' + return f'{base_station_url}/{style[style.find("(") + 2:style.find(")")]}' third_pic = get_third_pic() text = soup.find("div", {"class": "a6678 a4af5"}).get("style")