如何使用 google 表 IMPORTXML 和//img/@src 获取网站徽标?

How to get websites logos with google sheets IMPORTXML with //img/@src?

我有一个 google sheet 列表,其中包含不同的公司及其网站地址。我正在 glide 中构建一个小应用程序,并希望包含公司徽标。在我的 google sheet 中,我想要一个 URL 到徽标图像。有什么办法可以过滤掉我使用//img/@src 得到的其他图像吗?请帮我找到 =importxml(E3,"//img/@src") 的功能 --> 只获取徽标。 谢谢您的帮助 my table

对于第一个,你可以使用

=IMPORTXML("https://www.xolo.io/zz-en","//link[@type='image/png']/@href")

不可能https://1office.co/(网站使用javascript)

第三个

=importxml("https://www.firma.de/","//meta[@property='og:image']/@content")

您必须为每个 url

检索特定的 xpath