[BUG]search_web()返回为空
380355757 opened this issue · comments
380355757 commented
380355757 commented
已解决
James Brown commented
怎么解决的 请教?
ruibinzhang commented
怎么解决的 请教?
已解决
380355757 commented
def parse_webpage_block(self, news:BeautifulSoup) -> Dict:
webpage_rows = news.find_all("div",class_="c-container",tpl="se_com_default")
webpage_detail = []
# print(len(webpage_rows))
for row in webpage_rows:
#
# print(row)
# print('________________________________________________________')
row_title = self._format(row.find("h3",class_="t").find("a").text)
descr =self._format(row.find("span",class_="content-right_8Zs40").text)
row_url =self._format(row.find("h3",class_="t").find("a")["href"])
# print(row_title,descr,row_url)
webpage_detail.append(
{
"titl":row_title,
"url":row_url,
"descr":descr,
}
)
return webpage_detail