上传单词到 K241 班单词自学表网站,自动获取翻译和音频。
https://k241.wooomooo.commick / 密码: vee/login.phpupload.php?auto_fetch=1&word=单词/admin_words.phpGET 请求,自动从有道词典获取翻译和拼音:
text
GET /upload.php?auto_fetch=1&word={单词}
POST 表单(翻译和拼音必填):
text
POST /upload.php
Content-Type: application/x-www-form-urlencoded
word={单词}&translation={翻译}&pinyin={拼音}
在管理后台找到 word_id,用 POST 更新:
text
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单词拼音accidentsshì gùuseshǐ yòngsun creamfáng shài shuānggetdé dàohurtshòu shāngmusclesjī ròubonesgǔ tousweathàn shuǐlosesshī qù leprotectbǎo hù
详细拼音表见 references/pinyin.md。
auto_fetch=1 上传单词(有道 API 自动获取翻译+拼音)get_word.php?id=X 确认拼音是否为空auto_fetch 依赖有道词典 API,可能网络波动失败auto_fetch 失败率高,改为手动 POST 方式传入翻译和拼音