# FlashScore赔率提取方法（2026-06-10发现）

## 方法
FlashScore比赛页面的HTML中，赔率数据嵌入在script标签的JSON中。

### 步骤
1. curl获取比赛页面HTML
2. 用正则提取所有script内容
3. 在包含odds/price/bet365的script中搜索赔率数字
4. 赔率格式：[主胜, 平局, 客胜]，如 1.50 / 2.00 / 8.30

### Python示例
import subprocess, re
result = subprocess.run(['curl', '-s', url, '-H', 'User-Agent: Mozilla/5.0'], capture_output=True, timeout=20)
html = result.stdout.decode('utf-8', errors='replace')
odds = re.findall(r'\b[1-9]\.\d{2}\b', html)
unique_odds = list(dict.fromkeys(odds))

### 注意
- 页面有78个script标签，需要找包含odds关键词的
- 大小球盘口（2.5/3.5等）也在script中
- 不同比赛赔率不同

### 已知比赛ID（2026世界杯）
- 墨西哥vs南非: mexico-O6iHcNkd/south-africa-W2ijYvlr
- 韩国vs捷克: czech-republic-6LHwBDGU/south-korea-K6Gs7P6G
