东方闪电苟富贵

 
soup = BeautifulSoup(data, 'html.parser')
    soup_en = BeautifulSoup(data_en, 'html.parser')
    result = []
    for result_table in soup.find_all('li', class_='b_algo'):
        big_title = result_table.find("h2")
        title = big_title.get_text()
        res_url = r"(?<=href=\").+?(?=\")|(?<=href=\').+?(?=\')"
        link = re.findall(res_url, str(big_title), re.I | re.S | re.M)[0]
        details = result_table.find("p")

  

上一篇:Beautiful Soup库基本元素


下一篇:【Python3 爬虫】U11_BeautifulSoup4之select和CCS选择器提取元素