HKEXnews Skill: Batch Query and Download of HK Listed Company Reports

Foreword

When preparing working papers for Hong Kong stock compliance, due diligence, or auditing, you often need to search HKEx’s disclosure portal for announcements by stock code and date, then open each PDF or HTML file manually. Manual searching and single-file downloads become very time-consuming when there are many tickers or a long date range. The following community Skill on SkillHub, “HKEx Disclosure – Batch Query and Download of Listed Company Reports”, delegates searching, metadata consolidation, and bulk storing to the Agent together with the accompanying Python scripts.

What Is This

In one sentence: a Skill that retrieves and downloads announcements from the HKEx disclosure portal, identified as @user_457a1277/hkex-filing-scraper. Current version 1.0.0, category data-analysis, origin community, publisher user_457a1277 (the SkillHub page attributes the authorship to Peter Ynag). The Skill tag requires_api_key=false indicates no third-party API key is needed.

The official page describes it as primarily for intermediaries to batch-query reports of Hong Kong listed companies and notes that a local Python environment is required. The scripts inside the Skill pull data through HTTP interfaces related to the disclosure portal, so no browser automation is involved.

Core Features

The following capabilities align with the Skill package’s SKILL.md and the store search summary:

  1. Search announcements by criteria: supports stock codes (5-digit numbers, e.g. 01748) and date ranges; when no code is provided, the entire market can be queried.
  2. Batch download documents: downloads announcement PDF/HTML files in parallel to a local directory.
  3. Metadata export: outputs JSON or an Excel (xlsx) file with hyperlinks.
  4. Categorize announcement types: such as annual reports, results, circulars, notices, etc. (fields include filingType and others).

Common fields for a single record: stockCode, stockName, title, date, link, fileType, fileSize, filingType.

Trigger phrases in conversation include: disclosure portal, HKEx announcements, HKEX filing, HKEx announcement download, disclosure portal search, HKEx announcement download, Hong Kong stock announcements, batch download announcements, HKEX search, disclosure portal scraping.

Installation and Activation

1. Install the SkillHub CLI

If not yet installed, check or install according to the SkillHub installation guide:

command -v skillhub && skillhub --version

When absent, run the full installation (as recommended in the docs):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install this Skill

During installation you must point --dir to the current Agent’s skills directory; otherwise files land in the default ./skills/ and may not be recognized. The store-provided install command is:

skillhub install hkex-filing-scraper --namespace user_457a1277 --dir <skills directory>

Common path examples (follow the SkillHub documentation):

  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ within the project
  • Claude Code: ~/.claude/skills/

After installation, refresh or restart the Agent as required by your client so the Skill takes effect.

3. Python dependencies

The Skill metadata requires Python >= 3.10 and depends on:

  • requests
  • beautifulsoup4
  • openpyxl

Install these packages on your local machine before running the scripts.

Typical Usage

The Agent invokes scripts/hkex_scraper.py inside the package as guided by the Skill. After entering the Skill installation directory, the examples below match the official SKILL.md.

Search announcements for one stock over the default recent interval (about 2 months):

python scripts/hkex_scraper.py search --stock 01748

Specify a date range:

python scripts/hkex_scraper.py search --stock 01748 --from 2024-01-01 --to 2024-12-31

Query the whole market by date without specifying a stock:

python scripts/hkex_scraper.py search --from 2026-04-01 --to 2026-04-22

Download to a local directory:

python scripts/hkex_scraper.py download --stock 01748 --from 2026-01-01 --output ./pdfs

Export to Excel:

python scripts/hkex_scraper.py search --stock 01748 --from 2025-01-01 --format xlsx --output 01748_filings.xlsx

Limit the number of records:

python scripts/hkex_scraper.py search --stock 01748 --limit 50

Key parameters: search / download sub-commands; --stock, --from, --to, --limit, --format (json / xlsx), --output, --workers (default 5 parallel download threads).

Representative use cases in the Skill documentation include: pulling announcement lists for a Hong Kong stock client over a specific period, batch downloading annual/interim reports and circulars, and checking timeliness and completeness of disclosures.

Applicable Scenarios and Notes

Who it suits: analysts, intermediaries, auditors, and compliance professionals who need to batch-query the disclosure portal, compile announcement lists, or save PDF/HTML files locally; better suited than “opening web pages and clicking one by one” for repetitive tasks with clear date ranges.

Usage notes:

  • Depends on availability of the HKEx disclosure portal and its interfaces; the Skill notes it calls search-related HTTP endpoints (e.g. titleSearchServlet.do), so network changes or site modifications may affect results.
  • For batch downloads, watch local disk space and concurrency (--workers) to avoid excessive load on the target site.
  • This is a community Skill; evaluate compliance and data-use boundaries beforehand. The metadata states the package is adapted from an open-source project; see the Skill package for specific licensing.
  • Store statistics (at the time of crawling): rating 100000, about 819 downloads; refer to the SkillHub skill page for the latest figures.

Closing

“HKEx Disclosure – Batch Query and Download of Listed Company Reports” consolidates disclosure portal searching, metadata export, and batch downloading into a single Skill plus script workflow, well-suited for bulk processing of Hong Kong stock announcements. For installation and details, see SkillHub:

  • Skill page: https://www.skillhub.cn/skills/user_457a1277/hkex-filing-scraper
  • API coordinate: https://api.skillhub.cn/user_457a1277/hkex-filing-scraper
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye