【问题标题】:Extract list of url from a page using importxml使用 importxml 从页面中提取 url 列表
【发布时间】:2021-09-20 15:29:48
【问题描述】:

是一种使用 importxml 抓取此列表中所有链接的方法吗? 该页面是: http://www.derecho.uba.ar/academica/asuntos_estudiantiles/pasantias/ofertas_anteriores.php

当我使用这个 xpath 时,只返回链接的名称,而不是 urls

//*[contains(concat( " ", @class, " "), concat(" ", "listaLinks", " "))]//a

它给了我“General Motors de Argentina S.R.L.”当我想要该链接的网址时,我需要该列表的所有不同名称的网址

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: google-sheets xpath google-sheets-formula


【解决方案1】:

你可能想要//*[contains(concat( " ", @class, " " ), concat( " ", "listaLinks", " " ))]//a/@href

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-16
    • 2013-06-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多