Loading...
Loading...
Search, validate, and save cloud drive resources via PanSou aggregation API and local Quark desktop APP integration. This skill should be used when the user wants to find and download resources from cloud drives (网盘资源搜索下载), especially when they mention keywords like "搜资源", "找片", "下载", "网盘", "夸克", "quark", "panso", "盘搜". Requires Quark desktop APP running and logged in with membership.
npx skill4agent add psylch/quark-search quark-search${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 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 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 detail PWD_ID --stoken STOKEN [--fid FID]--fidfidpython3 ${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. [已失效] 三体合集 — 分享已过期python3 ${SKILL_PATH}/scripts/quark_search.py save PWD_ID_OR_URLdesktop_share_visitingdesktop_callerdesktop_share_visitingdesktop_caller已在夸克 APP 中打开分享链接窗口。注意:弹出的窗口可能很小,请留意任务栏/Dock 上的夸克图标。 在 APP 中点击「保存到网盘」按钮完成保存。保存后文件会出现在你的网盘中,可以直接在 APP 中下载到本地。
browser_fallbacksearch| 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 |
localhost:9128