如何使用没有名字的beautifulsoup找到桌子?对于python

时间:2018-06-03 17:31:29

标签: python beautifulsoup

我正在尝试从网站http://indexarb.com/index.html中找到第三个表格。但我无法找到该表的唯一名称。

尝试获取第一列中的文本的valueim: " S& P 500 Prem大于1.49"

你能帮忙吗?

url = requests.get("http://indexarb.com/index.html")

html_content = url.content
soup = BeautifulSoup(html_content, "html.parser")
soup = soup.find_all("table")
print(soup)

0 个答案:

没有答案