Skills singapore-pools-toto-results
Fetch and summarize latest Singapore Pools TOTO results from official Singapore Pools data files (normal, cascade, hongbao, special). Use when users ask for latest TOTO winning numbers, additional number, draw number/date, Group 1 prize, winning shares, or need JSON output sourced from singaporepools.com.sg.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/bluesneed/singapore-pools-toto-results" ~/.claude/skills/clawdbot-skills-singapore-pools-toto-results && rm -rf "$T"
manifest:
skills/bluesneed/singapore-pools-toto-results/SKILL.mdsource content
Singapore Pools Toto Results
Overview
Fetch the latest TOTO result directly from Singapore Pools generated result files and return clean text or JSON.
Workflow
- Run the fetch script from this skill directory.
- Choose draw type (
,normal
,cascade
,hongbao
) as needed.special - Use
for chat replies and--format text
for automation.--format json - Include the reported
URL when citing results.Source
Commands
python3 scripts/fetch_toto_latest.py python3 scripts/fetch_toto_latest.py --draw-type cascade python3 scripts/fetch_toto_latest.py --draw-type hongbao --format json python3 scripts/fetch_toto_latest.py --draw-type special --format json
Output Contract
The script returns:
- draw date
- draw number
- 6 winning numbers
- additional number
- Group 1 prize
- winning shares table
- single-draw page URL (
)/en/product/sr/Pages/toto_results.aspx?... - source file URL used for retrieval
Troubleshooting
- If network fetch fails, retry with a larger timeout:
.--timeout 30 - If parsing fails, inspect endpoint HTML structure and update regexes in
.scripts/fetch_toto_latest.py - If Singapore Pools changes filenames or hosting paths, update mappings in
.references/source-endpoints.md
Resources
: Fetch and parse latest result payload.scripts/fetch_toto_latest.py
: Official endpoint mapping and parser assumptions.references/source-endpoints.md