Google Sheet IMPORTXML div 阶级斗争

问题描述 投票:0回答:1

我正在尝试使用 importxml 抓取一些数据..并且希望得到一些帮助。 我已成功通过以下方式获取发布数据和开发人员..

=IMPORTXML("https://store.steampowered.com/app/1145360/Hades/","//div[@class='release_date']/div[2]")

=IMPORTXML("https://store.steampowered.com/app/1145360/Hades/","//*[@id='developers_list']")

但正在努力寻找正确的公式来获得发布商。什么才是正确的道路?

提前致谢!

                            <div class="release_date">
                                    <div class="subtitle column">Release Date:</div>
                                    <div class="date">17 Sep, 2020</div>
                                </div>
                            
                                                                                        <div class="dev_row">
                                    <div class="subtitle column">Developer:</div>
                                    <div class="summary column" id="developers_list">
                                        <a href="https://store.steampowered.com/developer/supergiantgames?snr=1_5_9__2000">Supergiant Games</a>                                 </div>
                                </div>
                            
                                                                                                <div class="dev_row">
                                        <div class="subtitle column">Publisher:</div>
                                        <div class="summary column">
                                        <a href="https://store.steampowered.com/publisher/supergiantgames?snr=1_5_9__2000">Supergiant Games</a>                                     </div>
                                    </div>

链接https://store.steampowered.com/app/1145360/Hades/

尝试了不同的变体,但没有成功 =IMPORTXML("https://store.steampowered.com/app/1145360/Hades/","//div[@class='dev_row']/div[2]")

google-sheets google-sheets-formula
1个回答
0
投票

尝试:

=INDEX(IMPORTXML("https://store.steampowered.com/app/1145360/Hades/",
 "//div[@class='dev_row']/div[2]"), 2)

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.