BeautifulSoup getting content behind multiple
levels

后端 未结 3 1737
旧巷少年郎
旧巷少年郎 2021-01-27 14:03

How can I get the time data behind two \"divs\" with BeautifulSoup?

6:00.00

I\'ve tried the f

3条回答
  •  误落风尘
    2021-01-27 14:14

    To your second question:

    if "kW" in item.text:
        itemval = item.find_parent().find_next_sibling().text.strip()
        output.append(itemval)
    

提交回复
热议问题