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请求有何不同?_Xml_Google Sheets_Incapsula - Fatal编程技术网

这两个xml请求有何不同?

这两个xml请求有何不同?,xml,google-sheets,incapsula,Xml,Google Sheets,Incapsula,我最近发现了一段代码,可以帮助我将实时价格输入谷歌表单,并希望在此基础上进一步扩展: =min(importxml("http://shop.tcgplayer.com/productcatalog/product/show?IsProductNameExact=true&ProductName="&A5, "//div[contains(@class, 'scCardContent')]/span[@*] | //div[contains(@class, 'priceGuide

我最近发现了一段代码,可以帮助我将实时价格输入谷歌表单,并希望在此基础上进一步扩展:

=min(importxml("http://shop.tcgplayer.com/productcatalog/product/show?IsProductNameExact=true&ProductName="&A5, "//div[contains(@class, 'scCardContent')]/span[@*] | //div[contains(@class, 'priceGuidePricePointDiv')][1]//tr[2]/td[contains(@class, 'priceGuidePricePointData')][1]"))
但是,当我在脚本编辑器中编写xml请求时,我无法成功地发出请求

  var xml = UrlFetchApp.fetch(tcgUrl).getContentText();
我尝试了几种不同的方法,但总是被Incapsula堵塞


请求失败。Incapsula事件ID:4900036025449935-58971335958258649157
您应该利用他们的API,而不是直接删除站点,因为这是访问定价数据的首选方式


您应该利用他们的API,而不是直接删除网站,因为这是访问定价数据的首选方式


好的,当然可以,但它仍然没有解释这两种xml用法是如何不同的。好的,当然可以,但它仍然没有解释这两种xml用法是如何不同的。