简体   繁体   English

IMPORT XML 不会从 Steam 导入数据

[英]IMPORT XML does not import data from Steam

I use the same script in Google Sheets for 2 game pages of Steam:我在 Google 表格中为 Steam 的 2 个游戏页面使用相同的脚本:

  1. IMPORTXML("https://store.steampowered.com/app/41014";"//*[@id='appHubAppName']") IMPORTXML("https://store.steampowered.com/app/41014";"//*[@id='appHubAppName']")
  2. IMPORTXML("https://store.steampowered.com/app/1069690";"//*[@id='appHubAppName']") IMPORTXML("https://store.steampowered.com/app/1069690";"//*[@id='appHubAppName']")

1 - works, 2 - not. 1 - 有效,2 - 无效。 What's wrong?怎么了?

There is no <div id="appHubAppName" in the source of the second URL.第二个URL的源中没有<div id="appHubAppName" In fact, you must first give your age before.事实上,你必须先给出你的年龄。 Since google collects data from the web, google can tell the site how old it is!由于 google 从 web 收集数据,因此 google 可以告诉该站点它的年龄!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM