Beautifulsoup 不是所有的都显示在 find_all()

问题描述 投票:0回答:0

我正在尝试解析从页面返回的结果,它只会显示大约 15 个结果。我怀疑其他值在其他表/div 上,但它不应该在整个页面中寻找所有 td 吗?

    source = driver.page_source
    soup = BeautifulSoup(source,'html.parser')
    for word in soup.find_all("td", {"idx": "1"}):
        find_all_example=word.get_text()
        print(find_all_example)
beautifulsoup findall
© www.soinside.com 2019 - 2024. All rights reserved.