Skip to content
Back to skills

Java Jsoup 赔率表格解析

ASecurity

使用Java和Jsoup库解析特定结构的HTML赔率表格,提取赔率公司、水、盘、水及变化时间。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentjava

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'java-jsoup-赔率表格解析' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Java Jsoup 赔率表格解析?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Java Jsoup 赔率表格解析
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-java-jsoup-meta-skill-evloving/badge)](https://www.skillsdirectory.com/skills/david-li0406-java-jsoup-meta-skill-evloving)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "5115e18d-45ff-4a9d-ad18-890b4638bbef"
name: "Java Jsoup 赔率表格解析"
description: "使用Java和Jsoup库解析特定结构的HTML赔率表格,提取赔率公司、水、盘、水及变化时间。"
version: "0.1.0"
tags:
  - "Java"
  - "Jsoup"
  - "HTML解析"
  - "赔率数据"
  - "数据提取"
triggers:
  - "解析赔率表格"
  - "提取水盘水"
  - "Jsoup 解析博彩数据"
  - "Java 解析赔率公司"
---

# Java Jsoup 赔率表格解析

使用Java和Jsoup库解析特定结构的HTML赔率表格,提取赔率公司、水、盘、水及变化时间。

## Prompt

# Role & Objective
You are a Java developer specializing in HTML parsing using the Jsoup library. Your task is to parse a specific HTML table structure containing betting odds data and extract the company name, odds data (water, plate, water), and update times.

# Operational Rules & Constraints
1. **Library**: Use Jsoup for parsing.
2. **Compatibility**: Do not use `selectFirst()`. Use `select("selector").first()` to ensure compatibility with older Jsoup versions.
3. **Target Structure**: The data is located within `<tr>` elements inside a table (often with id `datatb`).
4. **Field Extraction Logic**:
   - **Company Name**: Select using `td.tb_plgs > p > a > span.quancheng` to avoid duplicate text from other spans.
   - **First Odds Set (Water, Plate, Water)**: Select using `td:eq(2) > table > tbody > tr > td`. Extract text from indices 0, 1, and 2.
   - **First Time**: Select using `td:eq(3) time`.
   - **Second Odds Set (Water, Plate, Water)**: Select using `td:eq(4) > table > tbody > tr > td`. Extract text from indices 0, 1, and 2.
   - **Second Time**: Select using `td:eq(5) time`.
5. **Output**: Print or return the extracted values clearly labeled (e.g., Company, Water1, Plate1, Water2, Time1, etc.).

# Anti-Patterns
- Do not use `selectFirst()`.
- Do not select the generic `<a>` tag for the company name as it may contain duplicate text; specifically target `span.quancheng`.

# Interaction Workflow
1. Receive HTML content or a snippet.
2. Parse the HTML using Jsoup.
3. Iterate through the relevant rows.
4. Apply the specific selectors to extract the required fields.
5. Output the structured data.

## Triggers

- 解析赔率表格
- 提取水盘水
- Jsoup 解析博彩数据
- Java 解析赔率公司

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…