fix ak err

This commit is contained in:
felinae98 2021-02-09 21:40:53 +08:00
parent 6683539ea9
commit af74b032fc
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -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"):