Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
导入XML+;选择器小工具(xPath)-->;Soundcloud跟随者到Google工作表不起作用_Xml_Xpath_Google Sheets_Soundcloud - Fatal编程技术网

导入XML+;选择器小工具(xPath)-->;Soundcloud跟随者到Google工作表不起作用

导入XML+;选择器小工具(xPath)-->;Soundcloud跟随者到Google工作表不起作用,xml,xpath,google-sheets,soundcloud,Xml,Xpath,Google Sheets,Soundcloud,我正在尝试使用=IMPORTXML和Xpath(使用选择器小工具Chrome扩展,因为我不熟悉编码,XML非常令人畏惧)将给定页面的关注者数量复制到Google工作表。理想情况下,我很乐意为我跟踪的数千个帐户这样做 我一直在遵循一个指南,该指南解释了如何在Soundcloud上执行此操作,我正在尝试将其应用于Soundcloud。我关注的是: 选择要从中获取信息的正确URL 获取正确的Xpath代码 这是我的全部代码,在google sheets上执行时会出现公式解析错误: =IMPORTXML

我正在尝试使用=IMPORTXML和Xpath(使用选择器小工具Chrome扩展,因为我不熟悉编码,XML非常令人畏惧)将给定页面的关注者数量复制到Google工作表。理想情况下,我很乐意为我跟踪的数千个帐户这样做

我一直在遵循一个指南,该指南解释了如何在Soundcloud上执行此操作,我正在尝试将其应用于Soundcloud。我关注的是:

  • 选择要从中获取信息的正确URL

  • 获取正确的Xpath代码

  • 这是我的全部代码,在google sheets上执行时会出现公式解析错误:

    =IMPORTXML("https://soundcloud.com/codexnaturae", "//*[contains(concat( " ", @class, " " ), concat( " ", "sc-border-light-right", " " )) and (((count(preceding-sibling::*) + 1) = 1) and parent::*)]//*[contains(concat( " ", @class, " " ), concat( " ", "sc-font-tabular-light", " " ))])")
    
    细分:

    1.URL

    2.X路径符合选择器小工具

    /*[包含(concat(“,@class,”)、concat(“,”sc边框灯右“,”)和((计数(前面的同级::*)+1)=1)和父项::*)]/*[包含(concat(“,@class,”)、concat(“,”sc字体表灯“,”)]

    我看过

    任何帮助都将不胜感激。甚至只是给我指出了正确的方向。事先非常感谢你

    =IMPORTXML("https://soundcloud.com/codexnaturae",