mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-06-23 14:16:52 +08:00
fix ak err
This commit is contained in:
@@ -36,7 +36,7 @@ class Arknights(metaclass=Singleton):
|
|||||||
|
|
||||||
async def parse(self, announce_url: str) -> Post:
|
async def parse(self, announce_url: str) -> Post:
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
raw_html = client.get(announce_url)
|
raw_html = await client.get(announce_url)
|
||||||
soup = bs(raw_html, 'html.parser')
|
soup = bs(raw_html, 'html.parser')
|
||||||
pics = []
|
pics = []
|
||||||
if soup.find("div", class_="standerd-container"):
|
if soup.find("div", class_="standerd-container"):
|
||||||
|
|||||||
Reference in New Issue
Block a user