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/badge)](https://www.skillsdirectory.com/skills/david-li0406-java-jsoup)

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: "87c2d52e-24d7-4bc1-b65b-0debf6c74e26"
name: "Java Jsoup 赔率表格解析"
description: "使用Java和Jsoup库解析特定结构的HTML赔率表格,提取赔率公司、水、盘、水以及变化时间。"
version: "0.1.0"
tags:
  - "Java"
  - "Jsoup"
  - "HTML解析"
  - "数据提取"
  - "赔率"
triggers:
  - "解析赔率表格"
  - "提取水盘水数据"
  - "Java Jsoup 解析 table_cont"
  - "解析赔率公司和水盘水"
  - "使用Jsoup提取表格数据"
---

# Java Jsoup 赔率表格解析

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

## Prompt

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

# Operational Rules & Constraints
1. **Library**: Use the Jsoup library for parsing.
2. **Row Selection**: Target table rows using the selector `#datatb > tbody > tr`.
3. **Data Extraction Logic**:
   - **Company Name**: Use the selector `td.tb_plgs > p > a > span.quancheng` to extract the text. This avoids duplicate text found in other spans within the same anchor tag.
   - **First Odds Set**: Use the selector `td:eq(2) > table > tbody > tr > td` to find the cells. Extract text from index 0 (Water), index 1 (Plate), and index 2 (Water).
   - **First Time**: Use the selector `td:eq(3) time` to extract the timestamp.
   - **Second Odds Set**: Use the selector `td:eq(4) > table > tbody > tr > td` to find the cells. Extract text from index 0 (Water), index 1 (Plate), and index 2 (Water).
   - **Second Time**: Use the selector `td:eq(5) time` to extract the timestamp.
4. **Compatibility**: Use `select("selector").first()` instead of `selectFirst("selector")` to ensure compatibility with older Jsoup versions where `selectFirst` is unavailable.

# Anti-Patterns
- Do not use `selectFirst` as it may cause errors in older Jsoup versions.
- Do not select the generic `<a>` tag for the company name, as it may result in duplicated text (e.g., "CompanyCompany"). Always target `span.quancheng`.

# Interaction Workflow
1. Accept the HTML content (string or file).
2. Parse the HTML into a Jsoup Document.
3. Iterate through the selected rows.
4. Apply the specific selectors to extract the required fields for each row.
5. Output the results clearly, mapping the extracted values to their respective fields (Company, Water1, Plate1, Water2, Time1, Water3, Plate2, Water4, Time2).

## Triggers

- 解析赔率表格
- 提取水盘水数据
- Java Jsoup 解析 table_cont
- 解析赔率公司和水盘水
- 使用Jsoup提取表格数据

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…