Overview
- Skill Key
- coderwpf/pywencai
- Author
- coderwpf
- Source Repo
- openclaw/skills
- Version
- 1.0.0
- Source Path
- skills/coderwpf/pywencai
- Latest Commit SHA
- 12e46092eeb95b4a940f21d8c559e06d9237cc1b
Query Chinese A-share stock data from Tonghuashun Wencai (同花顺问财) using natural language.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 pywencai 技能。 若已安装,则直接安装 pywencai 技能。
# PyWenCai (同花顺问财数据查询) Query Chinese A-share stock market data from [同花顺问财](https://www.iwencai.com/) using natural language queries via Python. > ⚠️ **Cookie required**: You must provide a valid cookie from the Wencai website. See [How to get cookie](#how-to-get-cookie) below. ## Prerequisites - **Python 3.7+** - **Node.js v16+** (pywencai executes JS internally) - **pip** package manager ## Install ```bash pip install pywencai --upgrade ``` ## How to get cookie 1. Open https://www.iwencai.com/ in your browser and log in. 2. Open DevTools (F12) → Network tab. 3. Perform any query on the page. 4. Find the request to `iwencai.com`, copy the `Cookie` header value. 5. Use that string as the `cookie` parameter. ## Basic usage ```python import pywencai res = pywencai.get(query='今日涨幅前10', cookie='your_cookie_here') print(res) ``` ## API: `pywencai.get(**kwargs)` ### Required parameters - **query** — Natural language query string, e.g. `'今日涨停股票'`, `'市盈率小于20的股票'` - **cookie** — Cookie string from Wencai website (required) ### Optional parameters - **sort_key** — Column name to sort by, e.g. `'退市@退市日期'` - **sort_order** — `'asc'` or `'desc'` - **page** — Page number (default: `1`) - **perpage** — Items per page (default & max: `100`) - **loop** — `True` to fetch all pages; or integer `n` to fetch `n` pages - **query_type** — Query category (default: `'stock'`). Options: - `stock` — A股股票 - `zhishu` — 指数 - `fund` — 基金 - `hkstock` — 港股 - `usstock` — 美股 - `threeboard` — 新三板 - `conbond` — 可转债 - `insurance` — 保险 - `futures` — 期货 - `lccp` — 理财产品 - **retry** — Retry count on failure (default: `10`) - **sleep** — Seconds between requests when looping (default: `0`) - **log** — `True` to print logs to console - **pro** — `True` for paid version (requires cookie) - **no_detail** — `True` to always return `DataFrame` or `None` (never dict) - **find** — List of stock codes to prioritize, e...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.