如何从带有xpath的标题中的特定文本的表中选择所有行

时间:2018-03-14 21:36:14

标签: xpath web-scraping

我是Xpath的新手,我正试图从维基百科文章中的特定表中获取所有行,这些文章有很多表格,幸运的是我想要的表格里面有一个文本“Posición”它的标题,我怎么能实现这一目标? 我正在使用C#来实现这一点,我们将非常感谢任何帮助和提示:)

<table>
    <thead>
        <tr>
            <th>Something</th>
            <th>Posición</th>
            <th>Something</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>info1</td>
            <td>info2</td>
            <td>info3</td>
        </tr>
        ... more trs
    </tbody>
</table>

0 个答案:

没有答案