Перейти к навигации

MediaCrawler keeps getting blocked on Xiaohongshu and Douyin: what to use instead

Просмотр в формате Markdown

MediaCrawler is useful for learning how Playwright interacts with Chinese social platforms, but running MediaCrawler continuously in production hits three limits: logged-in accounts get flagged or banned, Xiaohongshu returns 461 blocks and slider captchas, and Douyin, Bilibili, and Zhihu break when frontend bundles update.

You can keep your existing CSV, database, and LLM analysis scripts and replace only the Playwright fetcher with BeatAPI (POST https://api.beatapi.io/v1/social-data/call or remote MCP at https://beatapi.io/mcp). BeatAPI requires no personal accounts or headless browsers, bills $0.003–$0.03 per successful request, and charges $0 on failed gateway calls.

Where MediaCrawler works vs. where BeatAPI fits better

ScenarioMediaCrawler (local Playwright)BeatAPI (REST and Remote MCP)
Account safetyRequires scanning QR codes with your own accountsNo platform login; uses BEATAPI_API_KEY only
DeploymentNeeds Chromium, anti-detection patches, and residential proxies on serversPlain HTTPS JSON call from any server, n8n, or AI agent
Platform coverage7 Chinese platforms (XHS, Douyin, Kuaishou, Bilibili, Weibo, Tieba, Zhihu)19+ platforms (1,021 actions), including all major Chinese platforms plus WeChat Official Accounts, WeChat Channels, TikTok, Instagram, YouTube, X, and Reddit
AI analysisSeparate LLM API key and billingSame BeatAPI USD balance also covers 70+ AI models, SEO Data, and Web Search

Task-by-task migration map (MediaCrawler → BeatAPI)

Keep your existing storage and analysis scripts, and replace each platform crawler with the matching BeatAPI action (prices checked 2026-11-23):

MediaCrawler targetBeatAPI action IDChecked price
Xiaohongshu keyword searchxiaohongshu.app_v2.search_notes$0.03 / request
Xiaohongshu note commentsxiaohongshu.app_v2.get_note_comments$0.03 / request
Douyin video detaildouyin.web.fetch_one_video$0.003 / request
Douyin video commentsdouyin.app.v3.fetch_video_comments$0.003 / request
Bilibili video searchbilibili.web.fetch_general_search$0.003 / request
Bilibili video commentsbilibili.app.fetch_video_comments$0.003 / request
Kuaishou searchkuaishou.app.search_comprehensive$0.03 / request
WeChat Official Account articleswechat_mp.v2.fetch_account_articles$0.03 / request

Drop-in Python wrapper to replace your crawler client

import json, os, urllib.request
def beatapi_call(action: str, params: dict) -> dict:
req = urllib.request.Request(
"https://api.beatapi.io/v1/social-data/call",
data=json.dumps({"action": action, "params": params}).encode(),
headers={
"Authorization": f"Bearer {os.environ['BEATAPI_API_KEY']}",
"Content-Type": "application/json",
"User-Agent": "beatapi-migration/1.0",
},
)
with urllib.request.urlopen(req, timeout=30) as resp:
return json.loads(resp.read().decode("utf-8"))
# Example: fetch Douyin comments ($0.003) without Playwright or cookies
res = beatapi_call("douyin.app.v3.fetch_video_comments", {"aweme_id": "7364837462110", "cursor": 0})
print(res["status"], res["request_id"])

Inspect any action’s live input schema and price for $0 with POST /v1/capabilities/inspect, or browse the Social Data Catalog and BeatAPI pricing.