This search engine plug-in supports information acquisition through Baidu, Google, and Bing search engines.
- Baidu Search: Perform search queries using the Baidu search engine.
- Google Search: Perform search queries using the Google search engine.
- Bing Search: Perform search queries using the Bing search engine.
If the environment variables for the search engine (SEARCH_ENGINE) are not configured, baidu or google will be automatically selected based on the language attribute, or you can set which one to use by default, with a configurable range (baidu, google, bing).
- Open the Chrome browser and search for something on Baidu.
- Open Developer Tools (press F12 or right-click and select "Inspect").
- Go to the "Network" tab.
- Find the first name file in the list of network requests.
- On the right side, find the "Cookie" header and copy all of its content(it's very long).
Set the BAIDU_COOKIE in the .env file:
BAIDU_COOKIE=your-baidu-cookie
- Go to the Bing Web Search API website.
- Sign into your Microsoft Azure account or create a new account if you don't have one.
- After setting up your account, go to the "Keys and Endpoint" section.
- Copy the key from there and add it to the
.envfile in your project directory. - Name the environment variable
BING_API_KEY.
Set the BING_API_KEY in the .env file:
BING_API_KEY=your_bing_api_key
- Get Google Key, Go to the Programmable Search Engine website.
- Google CX, Go to the Programmable Search Engine website.
- Get the API key and cx add it to the
.envfile in your project directory - You can refer to website https://developers.google.com/custom-search/v1/reference/rest

Set the GOOGLE_API_KEY and GOOGLE_API_CX in the .env file:
GOOGLE_API_KEY=your_google_api_key
GOOGLE_API_CX=your_google_api_cx

