RenfeiZhong

Restaurant Crosscheck CN

数据分析v2.0.0
作者:RenfeiZhong更新于 2026-05-18restaurant-crosscheck-cn@clawhub_zhongrenfei1-hub/restaurant-crosscheck-cn
网页抓取竞品分析

据 AlphaMoat 统计,截至 2026-09,Restaurant Crosscheck CN 累计下载 2,083 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,372 位,在「数据分析」分类(399 个)中排名第 336 位。

累计安装
210
累计下载
2,083
星标
-
全站排名
#4,372
全站前 87% · 「数据分析」前 85%
平台累计安装累计下载星标评论
ClawHub ↗491,587--
SkillHub ↗2102,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

可以用来做什么

  • 按城市与菜系查询并交叉核对餐厅推荐
  • 输出评分、评价数、互动与一致性对比
  • 对一致性低于 0.5 的结果标记人工复核

什么时候用

  • 按地理位置查询餐厅推荐并需要跨平台验证时
  • 做餐饮决策或本地生活研究前需要一致性检查时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

交叉核对上海静安区日式料理餐厅,给出推荐指数与一致性
查询北京朝阳区火锅店,只看评分 4.5 以上且评价超过 100 条的结果

月度数据趋势

累计下载2,083
7511,4672,1822026-03 · 累计下载 8502026-05 · 累计下载 1,1642026-07 · 累计下载 1,5082026-08 · 累计下载 1,6902026-09 · 累计下载 2,08326-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,083—-
2026-081,690+12.1%-
2026-071,508—-
2026-051,164—-
2026-03850—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.4 KB · ClawHub v2.0.0
---
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
展开全部(共 188 行)

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)

「数据分析」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。