WEBSERVICE

Get some web content from a URI.

语法

WEBSERVICE(URI)

URI: URI text of the web service.

示例

=WEBSERVICE("wiki.documentfoundation.org/api.php?hidebots=1&days=7&limit=50&action=feedrecentchanges&feedformat=rss")

Returns the web page content of "https://wiki.documentfoundation.org/api.php?hidebots=1&days=7&limit=50&action=feedrecentchanges&feedformat=rss".

FILTERXML

Apply a XPath expression to a XML document.

语法

FILTERXML(XML Document; XPath expression)

XML Document (required): String containing a valid XML stream.

XPath expression (required): String containing a valid XPath expression.

示例

=FILTERXML(WEBSERVICE("wiki.documentfoundation.org/api.php?hidebots=1&days=7&limit=50&action=feedrecentchanges&feedformat=rss");"//lastBuildDate")

Returns information on the last build date of the wiki.

ENCODEURL

Returns a URL-encoded string.

Use this function to transform text with symbols of national alphabets (for example accented characters, non-ASCII alphabets or Asian words) to a string of URL-standard symbols.

语法

ENCODEURL(文本)

文本」: 要编码为 URL 标准符号序列的字符串。

示例

如果单元格 A1 包含西里尔文字「автомобиль」「=ENCODEURL(A1)」返回 %D0%B0%D0%B2%D1%82%D0%BE%D0%BC%D0%BE%D0%B1%D0%B8%D0%BB%D1%8C (单词「автомобиль」在俄语中意为「车」)。

如果单元格 B1 包含文本「車」「=ENCODEURL(B1)」返回 %E8%BB%8A (日语中「車」意为「车」)。