首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google多功能ImportXMLfails

Google多功能ImportXMLfails
EN

Stack Overflow用户
提问于 2020-12-26 14:00:52
回答 1查看 65关注 0票数 1

我有一个谷歌单子,我想刮几个股票价格,在给定的例子中有5个股票价格,所有5个importXML查询都工作,只是不同时工作,而那些不工作的只是一个"-“返回,但实际上没有一个没有工作的系统,在它们之间实际上都工作5。我想这是因为google工作表不能同时处理所有5个查询。

importXML看起来如下所示:

=IMPORTXML(" efGqYn排版__StyledTypography sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1 dqlo5q-2 emzYuD‘]) =IMPORTXML(" efGqYn排版__StyledTypography sc-10mju41-1 dKBtpx StatsBox_StyledPriceText-sc-1dqlo5q-2 emzYuD’]) =IMPORTXML(" efGqYn排版__StyledTypography sc-10mju41-1 dKBtpx StyledPriceText‘emzYuD])) =IMPORTXML(" efGqYn排版__StyledTypography sc-10 mju41-1 dKBtpx StatsBox_StyledPriceText-sc-1 dqlo5q-2 emzYuD‘)“)

有人有办法解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-26 15:23:45

尝试:

代码语言:javascript
复制
=INDEX({
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16712858-goodfood-market";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16100472-studsvik";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\ 
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16874165-kahoot";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16886100-flexion-mobile";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\ 
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16290321-kambi-group";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")})

或者只是一排:

代码语言:javascript
复制
=INDEX({
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16712858-goodfood-market";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16100472-studsvik";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\ 
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16874165-kahoot";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16886100-flexion-mobile";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")\ 
 IMPORTXML("https://www.nordnet.dk/markedet/aktiekurser/16290321-kambi-group";
 "//span[@class='Typography__Span-sc-10mju41-0 efGqYn Typography__StyledTypography-sc-10mju41-1 dKBtpx StatsBox__StyledPriceText-sc-1dqlo5q-2 emzYuD']")}; 1)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65457143

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档