Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.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
Xpath 接收错误“;“导入的内容为空”;使用ImportHTML时_Xpath_Web Scraping_Google Sheets_Google Sheets Formula_Google Sheets Importxml - Fatal编程技术网

Xpath 接收错误“;“导入的内容为空”;使用ImportHTML时

Xpath 接收错误“;“导入的内容为空”;使用ImportHTML时,xpath,web-scraping,google-sheets,google-sheets-formula,google-sheets-importxml,Xpath,Web Scraping,Google Sheets,Google Sheets Formula,Google Sheets Importxml,我正在使用以下公式(尝试使用一组不同的表号),并收到“导入的内容为空”错误。关于原因或可能的解决方案,有什么想法吗 importhtml("https://www.sportsbookreview.com/betting-odds/nba-basketball/pointspread/1st-quarter/", "table", 1) 只有你在照片上看到的东西才能被刮去 使用导入XML 使用索引查找所需数据 =IMPORTXML("https:/

我正在使用以下公式(尝试使用一组不同的表号),并收到“导入的内容为空”错误。关于原因或可能的解决方案,有什么想法吗

importhtml("https://www.sportsbookreview.com/betting-odds/nba-basketball/pointspread/1st-quarter/",
           "table",
           1)

只有你在照片上看到的东西才能被刮去

使用导入XML

使用
索引查找所需数据

=IMPORTXML("https://www.sportsbookreview.com/betting-odds/nba-basketball/pointspread/1st-quarter/";
 "//*") 
或指向特定的
div
如:

=IMPORTXML("https://www.sportsbookreview.com/betting-odds/nba-basketball/pointspread/1st-quarter/";
 "//div")