据 AlphaMoat 统计,截至 2026-09,Restaurant Crosscheck CN 累计下载 2,083 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,372 位,在「数据分析」分类(399 个)中排名第 336 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 49 | 1,587 | - | - |
| SkillHub ↗ | 210 | 2,083 | - | — |
各平台的计数口径不同,统计时间不一致。
按城市/行政区加菜系查询两地数据:大众点评侧抓取名称、评分、评价数、人均价位、地址与标签;小红书侧抓取笔记与点赞/收藏等互动及情感信号(官方说明小红书无公开 API,需抓取且要求 Cookie)。跨平台用模糊匹配(名称 Levenshtein 相似度与地址就近)对齐门店;一致性得分按评分相关 0.5、互动验证 0.3、情感对齐 0.2 加权,推荐得分再按大众点评评分 0.4、小红书互动 0.3、一致性 0.3 加权放大到 0-10 分,高于 8.0 视为高置信。默认阈值:最低评分 4.0/5.0、大众点评至少 50 条评价、小红书至少 20 篇笔记、最多输出前 10 家;大众点评请求间隔不低于每 2 秒 1 次,小红书不低于每 3 秒 1 次。认证抓取可能与平台条款冲突;仅在获准的访问范围内使用并遵守平台条款,不建议无人值守用于生产环境。 该流程使用 cookies 抓取小红书;仅在获准的访问范围内使用并遵守平台条款。评分是启发式比较,不是餐厅质量验证。
资料发布于 2026-10-29
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 2,083 | — | - |
| 2026-08 | 1,690 | +12.1% | - |
| 2026-07 | 1,508 | — | - |
| 2026-05 | 1,164 | — | - |
| 2026-03 | 850 | — | - |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: restaurant-review-crosscheck description: Cross-reference restaurant recommendations from Xiaohongshu (小红书) and Dianping (大众点评) to validate restaurant quality and consistency. Use when querying restaurant recommendations by geographic location (city/district) to get validated insights from both platforms. Automatically fetches ratings, review counts, and analyzes consistency across platforms to provide trustworthy recommendations with confidence scores. --- # Restaurant Review Cross-Check Cross-reference restaurant data from Xiaohongshu and Dianping to provide validated recommendations. ## Quick Start
Query restaurants by location and cuisine type:
```bash
# Basic query
crosscheck-restaurants "上海静安区" "日式料理"
# With filters
crosscheck-restaurants "北京朝阳区" "火锅" --min-rating 4.5 --min-reviews 100
```
## Workflow
### 1. Data Collection
Query both platforms simultaneously:
**Dianping:**
- Fetch restaurants matching location + cuisine
- Extract: name, rating, review_count, price_range, address, tags
**Xiaohongshu:**
- Search notes/posts matching location + cuisine
- Extract: restaurant_name, engagement_metrics (likes/saves), sentiment_score
- Note: Xiaohongshu data requires scraping as no public API
### 2. Data Matching
Match restaurants across platforms using fuzzy matching:
- Restaurant name similarity (Levenshtein distance)
- Location proximity (address matching)
- Handle name variations (e.g., "银座寿司" vs "银座寿司静安店")
See [scripts/match_restaurants.py](scripts/match_restaurants.py) for matching logic.
### 3. Consistency Analysis
Calculate consistency score based on:
- **Rating correlation** (0-1): Correlation between platform ratings
- **Engagement validation** (0-1): Do high ratings correlate with high engagement?
- **Sentiment alignment** (0-1): Do user sentiments align across platforms?
Formula: `consistency_score = (rating_corr * 0.5) + (engagement_val * 0.3) + (sentiment_align * 0.2)`
### 4. Recommendation Score
Calculate final recommendation score:
```
recommendation_score = (
(dianping_rating * 0.4) +
(xhs_engagement_normalized * 0.3) +
(consistency_score * 0.3)
) * 10
```
Output: 0-10 scale, where >8.0 = high confidence recommendation
## Output Format
```
📍 [Location] [Cuisine Type] 餐厅推荐
1. [Restaurant Name]
🏆 推荐指数: X.X/10
⭐ 大众点评: X.X (Xk评价)
💬 小红书: X.X⭐ (X笔记)
📍 地址: [Address]
💰 人均: ¥[Price]
✅ 一致性: [高/中/低] - [Brief explanation]
📊 平台对比:
- 大众点评标签: [Tags]
- 小红书热词: [Keywords]
⚠️ 注意: [Any discrepancies or warnings]
[Continue for top 5-10 restaurants...]
```
## Thresholds
- **Min rating**: 4.0/5.0 (configurable)
- **Min reviews**: 50 on Dianping, 20 notes on Xiaohongshu (configurable)
- **Max results**: Top 10 restaurants by recommendation score
- **High consistency**: Score > 0.7
- **Medium consistency**: Score 0.5-0.7
- **Low consistency**: Score < 0.5 (flag for manual review)
## API & Data Sources
### Dianping
- **Method**: Web scraping (Dianping API requires business partnership)
- **Base URL**: https://www.dianping.com
- **Rate limiting**: 1 request/2 seconds minimum
- **Anti-scraping**: Use residential proxies, rotate user agents
See [scripts/fetch_dianping.py](scripts/fetch_dianping.py) for implementation.
### Xiaohongshu
- **Method**: Web scraping (no public API)
- **Base URL**: https://www.xiaohongshu.com
- **Rate limiting**: 1 request/3 seconds minimum
- **Authentication**: Cookies required for full access
See [scripts/fetch_xiaohongshu.py](scripts/fetch_xiaohongshu.py) for implementation.
## Configuration
Edit `scripts/config.py` to set:
```python
DEFAULT_THRESHOLDS = {
"min_rating": 4.0,
"min_dianping_reviews": 50,
"min_xhs_notes": 20,
"max_results": 10
}
PROXY_CONFIG = {
"use_proxy": True,
"proxy_list": ["http://proxy1:port", "http://proxy2:port"]
}
```
## Error Handling
- **No matches found**: Suggest broader search terms or nearby areas
- **Platform timeout**: Retry with exponential backoff, max 3 attempts
- **Rate limiting detected**: Pause for 60 seconds, rotate proxy
- **Low confidence results**: Flag results with consistency < 0.5 for manual review
## Advanced Features
### Sentiment Analysis
Xiaohongshu posts use NLP to extract:
- Food quality mentions
- Service quality mentions
- Atmosphere mentions
- Price/value mentions
See [references/sentiment_analysis.md](references/sentiment_analysis.md) for methodology.
### Fuzzy Matching
Handle restaurant name variations:
- Chain stores (e.g., "海底捞火锅" vs "海底捞静安店")
- Abbreviations (e.g., "鼎泰丰" vs "鼎泰丰上海店")
- Translation differences
Uses `thefuzz` library for similarity scoring.
## Dependencies
```bash
pip install requests beautifulsoup4 pandas numpy thefuzz selenium lxml
```
See [scripts/requirements.txt](scripts/requirements.txt) for complete list.
## Troubleshooting
**Issue**: Xiaohongshu returns empty results
- **Solution**: Check if cookies expired, re-authenticate
**Issue**: Dianping blocks requests
- **Solution**: Reduce request rate, rotate proxies
**Issue**: Poor matching between platforms
- **Solution**: Adjust similarity threshold in `match_restaurants.py`
## References
- [Data schema documentation](references/data_schema.md)
- [Sentiment analysis guide](references/sentiment_analysis.md)
- [API limitations](references/api_limitations.md)
AdMapix 的取数层:把广告与应用相关的查询转成接口调用,只回原始 JSON。
走 Tavily 检索公开网页,返回带链接与摘要的结构化结果。
把数据库、表格与导出的原始数据变成可决策结论的数据分析技能。
用 Yahoo Finance 数据做股票与加密货币分析、组合跟踪的技能。
管理本地自选股清单,并按代码汇总同花顺行情与近期表现的技能。
知了标讯:查询和分析招标、中标、供应商与采购市场信息。
用命令行监控博客与 RSS/Atom 源的更新。
汇总 Codex 或 Claude 按模型计费的使用成本。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。