maxkb/ui/public/fx/google_search/detail.md

23 lines
1021 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 概述
Google 搜索工具是一个实时 API可提取搜索引擎结果提供来自 Google 的结构化数据。它支持各种搜索类型,包括 Web、图像、新闻和地图。
## 配置
1. 创建 Google Custom Search Engine
在[Programmable Search Engine]https://programmablesearchengine.google.com/)中 添加 Search Engine
![google 创建引擎](/fx/img/google_AddSearchEngine.jpg)
2. 获取cx参数
进入添加引擎在【基本】菜单中获取搜索引擎的ID即cx。
![google cx ](/fx/img/google_cx.jpg) 3.获取 API Key
打开 https://developers.google.com/custom-search/v1/overview?hl=zh-cn获取API Key。
![google API Key](/fx/img/google_APIKey.jpg)
3. 配置启动参数
在Google搜索函数的启动参数中填写配置以上参数。
![启动参数](/fx/img/google_setting.jpg)
4. 在应用中使用
在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。
![应用中使用](/fx/img/google_app_used.jpg)