fit nonebot.beta2

This commit is contained in:
HibiKier
2022-02-19 18:20:19 +08:00
parent ab443a21ec
commit 7dd68cf1ef
212 changed files with 6857 additions and 5615 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ if platform.system() == "Windows":
url = "http://www.eclzz.world"
async def get_bt_info(keyword: str, page: str):
async def get_bt_info(keyword: str, page: int):
"""
获取资源信息
:param keyword: 关键词
@@ -34,11 +34,11 @@ async def get_bt_info(keyword: str, page: str):
.strip()
)
spans = divs[2].find_all("span")
itype = spans[0].text
type_ = spans[0].text
create_time = spans[1].find("b").text
file_size = spans[2].find("b").text
link = await get_download_link(divs[0].find("a")["href"])
yield title, itype, create_time, file_size, link
yield title, type_, create_time, file_size, link
async def get_download_link(_url: str) -> str: