你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebSearchClient 类

Web 搜索 API 允许向必应发送搜索查询,并返回包含网页、图像等链接的搜索结果。

继承
WebSearchClient

构造函数

WebSearchClient(endpoint, credentials)

参数

endpoint
str
必需

支持的认知服务终结点 (协议和主机名,例如:“https://westus.api.cognitive.microsoft.com”、“”https://api.cognitive.microsoft.com) 。

credentials
None
必需

唯一标识客户端订阅的订阅凭据。

变量

config
WebSearchClientConfiguration

客户端的配置。

web
WebOperations

Web 操作

方法

close

如果keep_alive为 True,请关闭客户端。

close

如果keep_alive为 True,请关闭客户端。

close() -> None