如何使用 Selenium Python 从网络表中的 td 标签获取数据[重复]

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

我正在尝试使用 selenium python 从网络表中获取数据。问题是该网站只能在 Internet Explorer 浏览器中运行,因此我无法复制它的 XPATH。有没有一种方法可以在不使用 XPATH 方法的情况下从中获取数据?

这是html代码的截图 This is the screenshot of the html code

python html selenium-webdriver web-scraping internet-explorer
1个回答
0
投票

根据您提供的最少信息,应该可以工作的 css 选择器如下:

tbody>tr>td:nth-child(2)

© www.soinside.com 2019 - 2024. All rights reserved.