简体   繁体   English

select 数据提取的特定单元格值的最佳方法是 XPATH?

[英]Best approach to select particlular cell value for data extarction is XPATH?

Hi I am working a huge set of data.tables and I am trying to optimized to grab the value form those tables.嗨,我正在处理大量的 data.tables,我正在尝试优化以从这些表中获取价值。

There are many ways to select element. select 元素有很多方法。 What is the best approach to grab particular cell value from the tabular data.从表格数据中获取特定单元格值的最佳方法是什么。 For example, the page https://mytestbasics.blogspot.com/2022/11/sample-page.html there is a tablular data.比如页面https://mytestbasics.blogspot.com/2022/11/sample-page.html就有一个表格数据。 if we want to select the code value data what will be the best approach?如果我们想要 select 的代码值数据,最好的方法是什么? Picture to grab data图片抓取数据

I am trying to find the best approach for selecting data so that the process will be faster.我正试图找到选择数据的最佳方法,以便该过程更快。

Probably the best approach will be to do this with other tools, not Selenium since Selenium need to actually access each UI element.最好的方法可能是使用其他工具而不是 Selenium 来执行此操作,因为 Selenium 需要实际访问每个 UI 元素。 So, tools like Beautifulsoup will do that much faster.因此,像 Beautifulsoup 这样的工具会更快地完成这项工作。
But if you still want to use Selenium CSS Selectors will be slightly faster than other locators.但是如果你仍然想使用 Selenium CSS 选择器会比其他定位器稍微快一些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM