agentsclimarketplace

Java jsoup 赔率表格解析

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/java-jsoup-赔率表格解析

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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill java-jsoup-赔率表格解析

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.3 KB, 511 tokens by cl100k_base, as published. Nobody here has run it

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 解析赔率公司

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.