baidu-baike-data

Query Baidu Baike entries via keyword search and homonym resolution, returning structured JSON lemma content.

21|6|Updated Aug 26, 2025
One-click install
npx skills add https://github.com/hepai-lab/drsai --skill baidu-baike-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baidu-baike-data
Source: https://github.com/hepai-lab/drsai/tree/main/agent_skills/clawhub_ai_collection/baidu-baike-data
Command: npx skills add https://github.com/hepai-lab/drsai --skill baidu-baike-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Provides automated access to Baidu Baike encyclopedia entries for user queries within OpenClaw, enabling quick retrieval of authoritative explanations.

Core Features & Use Cases

  • Direct search by keyword to retrieve the default matching Baike entry.
  • Homonym resolution via LemmaList to disambiguate entries with the same name.
  • Content retrieval via LemmaContent to obtain structured entry data for downstream tasks.
  • Workflow example: Use in an OpenClaw agent to fetch an entry for a term and present the ID, title, and URL.

Quick Start

Run the baidu_baike.py script with a BAIDU_API_KEY and a search term to fetch the entry content.

Frequently Asked Questions about baidu-baike-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve Baidu Baike entries automatically within an OpenClaw workflow?

You can retrieve Baidu Baike entries by running Python scripts that call the lemma/get_content and lemma/get_list_by_title API endpoints, returning structured JSON results for your search term.

What is the best way to resolve homonyms when searching Baidu Baike entries?

Resolving homonyms in Baidu Baike entries requires using the LemmaList function to disambiguate terms with the same name, allowing you to select the exact entry before fetching its full content.

Do I need an API key to query Baidu Baike encyclopedia content?

Yes, you must provide a BAIDU_API_KEY to authenticate requests when running the baidu_baike.py script to fetch structured lemma content from the Baike API.

Can I use direct keyword search to get the default matching Baike entry?

Yes, direct keyword search retrieves the default matching Baidu Baike entry automatically, providing the ID, title, and URL for immediate use in downstream tasks.

What limitations exist when integrating Baidu Baike queries into agent workflows?

The integration is limited to querying nouns via the Baike API and requires the requests dependency, meaning it outputs structured JSON content but does not process unstructured web pages.

Does the Baidu Baike query tool work with the requests library in Python?

Yes, the tool uses Python scripts with the requests library to call API endpoints, fetching and returning structured encyclopedia entries as JSON data.