Loading...
Loading...
Compare original and translation side by side
${SKILL_PATH}/scripts/quark_search.py{"ok": true, "data": {...}}{"ok": false, "error": "...", "code": "..."}${SKILL_PATH}/scripts/quark_search.py{"ok": true, "data": {...}}{"ok": false, "error": "...", "code": "..."}python3 ${SKILL_PATH}/scripts/quark_search.py check{"ok": true, "data": {"isLogin": true, ...}}"code": "app_not_running"isLoginfalsepython3 ${SKILL_PATH}/scripts/quark_search.py check{"ok": true, "data": {"isLogin": true, ...}}"code": "app_not_running"isLoginfalsepython3 ${SKILL_PATH}/scripts/quark_search.py search "KEYWORD" --top 5| Flag | Default | Description |
|---|---|---|
| | Number of top valid results to return with details |
| off | Skip validation (faster, but may include dead links) |
| | PanSou results per page |
| | PanSou page number |
ok: true{
"ok": true,
"data": {
"keyword": "三体",
"total": 1234,
"valid_count": 8,
"results": [
{
"pwd_id": "abc123def",
"url": "https://pan.quark.cn/s/abc123def",
"note": "三体全集 4K",
"source": "plugin:libvio",
"datetime": "2025-01-15",
"stoken": "xxx",
"detail": {
"pwd_id": "abc123def",
"pdir_fid": "0",
"total": 3,
"list": [
{"file_name": "三体S01E01.mkv", "size": 4294967296, "dir": false, "fid": "f1"},
{"file_name": "Extras", "size": 0, "dir": true, "fid": "f2", "include_items": 5}
]
}
}
]
}
}totalvalid_countresults[].pwd_idresults[].detail.list[]results[].detail.list[].dirtrueresults[].detail.list[].fiddetailresultstotaltype_countsquarkpython3 ${SKILL_PATH}/scripts/quark_search.py search "KEYWORD" --top 5| Flag | 默认值 | 描述 |
|---|---|---|
| | 返回带详情的有效结果数量上限 |
| 关闭 | 跳过链接验证(速度更快,但可能包含死链) |
| | 单页返回的PanSou结果数量 |
| | PanSou搜索页码 |
ok: true{
"ok": true,
"data": {
"keyword": "三体",
"total": 1234,
"valid_count": 8,
"results": [
{
"pwd_id": "abc123def",
"url": "https://pan.quark.cn/s/abc123def",
"note": "三体全集 4K",
"source": "plugin:libvio",
"datetime": "2025-01-15",
"stoken": "xxx",
"detail": {
"pwd_id": "abc123def",
"pdir_fid": "0",
"total": 3,
"list": [
{"file_name": "三体S01E01.mkv", "size": 4294967296, "dir": false, "fid": "f1"},
{"file_name": "Extras", "size": 0, "dir": true, "fid": "f2", "include_items": 5}
]
}
}
]
}
}totalvalid_countresults[].pwd_idresults[].detail.list[]results[].detail.list[].dirtrueresults[].detail.list[].fiddetailresultstotaltype_countsquarkpython3 ${SKILL_PATH}/scripts/quark_search.py validate PWD_ID_OR_URL [...] | Meaning | Action |
|---|---|---|
| Share is alive | Proceed. Response includes |
| Share expired (code 41004) | Skip, mark as expired |
| Share deleted (code 41006) | Skip, mark as invalid |
| Other error | Skip |
python3 ${SKILL_PATH}/scripts/quark_search.py validate PWD_ID_OR_URL [...] | 含义 | 后续操作 |
|---|---|---|
| 分享链接有效 | 可继续操作,响应包含详情查询所需的 |
| 分享已过期(错误码41004) | 跳过,标记为过期 |
| 分享已被删除(错误码41006) | 跳过,标记为无效 |
| 其他错误 | 跳过 |
python3 ${SKILL_PATH}/scripts/quark_search.py detail PWD_ID --stoken STOKEN [--fid FID]--fidfidpython3 ${SKILL_PATH}/scripts/quark_search.py detail PWD_ID --stoken STOKEN [--fid FID]--fidfidpython3 ${SKILL_PATH}/scripts/quark_search.py health [--refresh]channelsplugins~/.cache/quark-search/health.json--refreshpython3 ${SKILL_PATH}/scripts/quark_search.py health [--refresh]channelsplugins~/.cache/quark-search/health.json--refresh搜索 "三体" 找到 X 个有效夸克网盘资源:
1. [有效] 三体全集 4K — 3个文件,来源: plugin:libvio
https://pan.quark.cn/s/abc123
2. [有效] 三体 第一季 1080P — 1个文件夹(42项),来源: channel:yunpanx
https://pan.quark.cn/s/def456
3. [已失效] 三体合集 — 分享已过期搜索 "三体" 找到 X 个有效夸克网盘资源:
1. [有效] 三体全集 4K — 3个文件,来源: plugin:libvio
https://pan.quark.cn/s/abc123
2. [有效] 三体 第一季 1080P — 1个文件夹(42项),来源: channel:yunpanx
https://pan.quark.cn/s/def456
3. [已失效] 三体合集 — 分享已过期python3 ${SKILL_PATH}/scripts/quark_search.py save PWD_ID_OR_URLdesktop_share_visitingdesktop_callerdesktop_share_visitingdesktop_caller已在夸克 APP 中打开分享链接窗口。注意:弹出的窗口可能很小,请留意任务栏/Dock 上的夸克图标。 在 APP 中点击「保存到网盘」按钮完成保存。保存后文件会出现在你的网盘中,可以直接在 APP 中下载到本地。
browser_fallbackpython3 ${SKILL_PATH}/scripts/quark_search.py save PWD_ID_OR_URLdesktop_share_visitingdesktop_callerdesktop_share_visitingdesktop_caller已在夸克 APP 中打开分享链接窗口。注意:弹出的窗口可能很小,请留意任务栏/Dock 上的夸克图标。 在 APP 中点击「保存到网盘」按钮完成保存。保存后文件会出现在你的网盘中,可以直接在 APP 中下载到本地。
browser_fallbacksearchsearch| Error | Detection | Resolution |
|---|---|---|
| Quark APP not running | | Tell user to launch Quark APP |
| Not logged in | | Tell user to log in |
| No search results | | Suggest different keywords |
| All links invalid | | Try alternative keywords or drive types |
| Share has password | | Ask user for the extraction code (提取码) |
| PanSou API error | | Retry or try later |
| 错误类型 | 检测方式 | 解决方法 |
|---|---|---|
| Quark APP未运行 | | 告知用户启动Quark APP |
| 未登录账号 | | 告知用户先登录Quark账号 |
| 无搜索结果 | | 建议用户更换关键词 |
| 所有链接均无效 | | 建议用户更换关键词或尝试其他类型网盘 |
| 分享需要密码 | | 向用户索要提取码 |
| PanSou API错误 | | 建议重试或稍后再试 |
localhost:9128localhost:9128