Install
openclaw skills install k241-word-upload上传单词到 K241 班单词自学网站 (k241.wooomooo.com),支持自动获取翻译和拼音。触发场景:用户要求上传单词、添加单词到网站、背单词。
openclaw skills install k241-word-upload上传单词到 K241 班单词自学表网站,自动获取翻译和音频。
https://k241.wooomooo.commick / 密码: vee/login.phpupload.php?auto_fetch=1&word=单词/admin_words.phpGET 请求,自动从有道词典获取翻译和拼音:
GET /upload.php?auto_fetch=1&word={单词}
POST 表单(翻译和拼音必填):
POST /upload.php
Content-Type: application/x-www-form-urlencoded
word={单词}&translation={翻译}&pinyin={拼音}
在管理后台找到 word_id,用 POST 更新:
POST /admin_words.php
Content-Type: application/x-www-form-urlencoded
action=update&word_id={id}&word={单词}&translation={翻译}&pinyin={拼音}
获取 word_id 方法:
/admin_words.phpget_word.php?id={id} 查询单词确认editWord(id) 对应的 id| 单词 | 拼音 |
|---|---|
| accidents | shì gù |
| use | shǐ yòng |
| sun cream | fáng shài shuāng |
| get | dé dào |
| hurt | shòu shāng |
| muscles | jī ròu |
| bones | gǔ tou |
| sweat | hàn shuǐ |
| loses | shī qù le |
| protect | bǎo hù |
详细拼音表见 references/pinyin.md。
auto_fetch=1 上传单词(有道 API 自动获取翻译+拼音)get_word.php?id=X 确认拼音是否为空auto_fetch 依赖有道词典 API,可能网络波动失败auto_fetch 失败率高,改为手动 POST 方式传入翻译和拼音