Skip to content

feat(ke): add Beike (贝壳找房) adapter#975

Merged
jackwener merged 1 commit intojackwener:mainfrom
runzhliu:feat/ke-adapter
Apr 12, 2026
Merged

feat(ke): add Beike (贝壳找房) adapter#975
jackwener merged 1 commit intojackwener:mainfrom
runzhliu:feat/ke-adapter

Conversation

@runzhliu
Copy link
Copy Markdown
Contributor

Summary

  • Add 4 commands for 贝壳找房 (ke.com), China's largest real estate platform:
    • ke ershoufang — 二手房列表 (second-hand house listings), with city/district/price/room filters
    • ke xiaoqu — 小区列表 (neighborhood listings), showing avg price, district, sales info
    • ke zufang — 租房列表 (rental listings), with city/district/price filters
    • ke chengjiao — 成交记录 (transaction records)
  • Shared utils.js with captcha/auth detection and page navigation helpers
  • All commands use Strategy.COOKIE + browser mode (ke.com has captcha protection)

Test plan

  • opencli ke ershoufang --city zs --limit 3 — verified with Zhongshan data
  • opencli ke xiaoqu --city zs --limit 3 — verified community names, avg prices
  • opencli ke zufang --city zs --limit 3 — verified rental titles, prices, layouts
  • opencli ke chengjiao --city zs — code works but ke.com rate-limits this page aggressively (captcha)
  • opencli validate — PASS
  • No personal paths or credentials in committed files

🤖 Generated with Claude Code

…hengjiao commands

Support browsing second-hand houses, neighborhoods, rentals, and
transaction records on ke.com with city/district/price filtering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackwener jackwener merged commit 232b682 into jackwener:main Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants