如何查看beautifulsoup中的数据中的单词?

时间:2018-10-20 21:33:22

标签: beautifulsoup word

我正在用beautifulsoup做研究。我正在寻找身体内部的弯曲和牵拉的tr影响。但是我在这些en标签中只有1个字。如何检查tr标签中是否包含该单词?找不到带有底行代码的单词

html = browser.page_source
source = BeautifulSoup(html,"lxml")
tbody = source.body.tbody.find_all("tr")
# thats code block not worked. But yesil in uses in tbody[0]
word = ("yesil")
if word in tbody[0] :
    print("word found in data")
else:
    print("word not found")

0 个答案:

没有答案