Baidu Baike Scraper
Under maintenancePricing
from $1.99 / 1,000 search results
Baidu Baike Scraper
Under maintenanceScrape encyclopedia entries from Baidu Baike (baike.baidu.com), China's largest online encyclopedia. Extracts entry titles, summaries, content sections, infobox data, references, and images. Supports search and direct entry URLs.
Pricing
from $1.99 / 1,000 search results
Rating
0.0
(0)
Developer
Search API
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Overview
Search Baidu Baike and extract rich, normalized records from public encyclopedia entries. The Actor uses a rendered Playwright DOM because Baike pages depend on browser execution and may show a security-verification page to ordinary HTTP clients.
What it extracts
Each dataset item represents one deduplicated public entry and can include stable entry identity, title metrics, subtitle, summary metrics, description, rendered article text and token/paragraph counts, breadcrumb taxonomy, section headings with levels/anchors, category/keyword metadata, structured infobox values, image URLs with captions and dimensions, deduplicated references, related entry links, related-search suggestions, search-result title/snippet/position, query and search URL, canonical entry URLs, language, OpenGraph metadata, inclusion flags, source/search context, and a UTC timestamp. Optional article text, images, and references can be disabled; the corresponding counts and flags make that choice explicit. Empty values are omitted rather than written as null placeholders.
Input
Use query for one search, queries for a batch, entryUrls for direct public https://baike.baidu.com/item/... pages, or combine search and direct-entry modes. URLs are canonicalized and deduplicated globally.
maxItems is the global output limit, maxItemsPerQuery limits discovery for each query, and maxPages controls search pagination. sortBy applies to the final normalized dataset: relevance preserves Baidu's discovery order, while the other values sort by title or rendered article size. titleContains, categoryContains, and the word-count bounds are post-extraction filters; word-count filters require includeContent: true.
Minimal search input
{"query": "人工智能","maxItems": 3,"proxyConfiguration": { "useApifyProxy": false }}
Batch, pagination, filters, and developer controls
{"queries": ["人工智能", "机器学习"],"maxItems": 10,"maxItemsPerQuery": 5,"maxPages": 2,"titleContains": "技术","categoryContains": "计算机","minWordCount": 100,"sortBy": "wordCountDesc","requestDelayMs": 500,"maxConcurrency": 2,"maxRequestRetries": 2,"navigationTimeoutSecs": 45,"requestHandlerTimeoutSecs": 90,"waitAfterLoadMillis": 1500,"includeContent": true,"includeImages": true,"includeReferences": true,"proxyConfiguration": { "useApifyProxy": false }}
Direct entry input
{"entryUrls": ["https://baike.baidu.com/item/artificial-intelligence/9180"],"includeContent": false,"includeImages": false,"includeReferences": false,"maxConcurrency": 1,"proxyConfiguration": { "useApifyProxy": false }}
The complete input contract, including field types, defaults, and limits, is defined in .actor/input_schema.json.
Dataset output
The Actor writes one JSON dataset item per entry. The dataset JSON files are available in the run's default dataset storage and through the Apify dataset API/Console links after the run completes. A run-level OUTPUT key-value record reports the final status, stored-record count, submitted queries, selected options, and completion time.
You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.
The complete record contract, including field types and requiredness, is defined in .actor/dataset_schema.json.
Reliability and access boundaries
The Actor validates HTTP status and content type before DOM extraction, uses bounded retries for transient network/server failures, persistent sessions, optional authorized Apify/custom proxy routing, and a DOM fallback for changed result-link tracking parameters. Search-result selection ignores site chrome (footer/header/nav links and Baidu's bk_fr=pcFooter tracking link), so a search page that paints only its skeleton fails closed instead of queueing the footer's "本人编辑" link as a result. Media and fonts are blocked only on entry navigations so article HTML and structured data remain available. Search pagination follows public next-page links and falls back to Baike's observed pn offset parameter when the live page omits a visible next link, until maxPages or the configured limits are reached.
Baidu HTTP 403/429 responses and detected security-verification or CAPTCHA pages fail closed. On a search page they stop the crawl immediately. On a single entry page they are treated as the per-page, per-exit refusal they are: the flagged session is retired, the Actor backs off (~4 s, then ~8 s, jittered) and re-requests that entry from a fresh session, then makes one delayed recovery pass over anything still missing from a new session pool. An entry that is still refused after that is named in missingEntryDetails with its gate (observed.biocSubId), and the remaining queued entries keep running instead of being abandoned. gateRetries and recoveredEntries count what the retries absorbed. HTTP 401/407 responses receive an auth-required status and stop without credentials. The run summary reports blocked when no records were obtained, or partial when an entry is still missing; it also reports queued entries left unprocessed. Malformed input is rejected before any target request and receives a malformed summary. The Actor does not solve challenges, click verification widgets, bypass authentication, change proxy routing after a block, use alternate hosts or routes, or log cookies, authorization headers, proxy credentials, tokens, response-body excerpts, or query-bearing URLs in failure diagnostics.
How to use
Choose search, batch, or direct-entry mode in the Apify Input tab, enter the relevant values, and start the Actor. Review normalized entries in the Output dataset and run status details in the OUTPUT key-value record.