返回顶部
c

clawdible

Search, browse, and manage Audible audiobooks. Use when the user wants to search for audiobooks on Audible, view their library, get book details, purchase a title, or manage their wishlist. Triggers on phrases like "find audiobook", "buy audiobook", "what's in my Audible library", "search Audible for", "add to wishlist". Requires one-time auth setup.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
78
下载量
2
收藏
概述
安装方式
版本历史

clawdible

# Clawdible Manage Audible via the `audible` Python library (unofficial API). Works across platforms — macOS, Linux, Windows. ## Dependencies Both scripts auto-install dependencies on first run via pip: - `audible` — unofficial Audible API client - `httpx` — HTTP client No manual pip install needed. ## Locating the scripts Resolve the skill directory at runtime: ```bash SKILL_DIR=$(python3 -c " import subprocess, json skills = subprocess.check_output(['openclaw', 'skills', '--json'], text=True) for s in json.loads(skills): if s['name'] == 'clawdible': print(s['path']); break " 2>/dev/null || find ~/.openclaw -name 'audible_cli.py' -path '*/clawdible/*' 2>/dev/null | head -1 | xargs dirname) SCRIPT="python3 $SKILL_DIR/audible_cli.py" AUTH="python3 $SKILL_DIR/audible_auth.py" ``` Or use the path OpenClaw provides when loading this skill (available as the skill's directory). ## Setup (one-time) Auth stored at `~/.config/audible/auth.json` (chmod 600). **Step 1** — generate login URL: ```bash python3 audible_auth.py --locale us ``` Send URL to user. They open it on any device and sign into Amazon. **Step 2** — after login, Amazon redirects to `https://www.amazon.com/ap/maplanding...`. User pastes that URL: ```bash python3 audible_auth.py --callback '<redirect URL>' ``` **Verify:** ```bash python3 audible_cli.py status ``` **Locale options:** `us`, `au`, `uk`, `de`, `ca`, `fr`, `in`, `it`, `jp`, `es` Auth file's `locale_code` is auto-detected; override with `--locale` if needed. ## Commands All commands accept `--locale LOCALE` and `--json`. ```bash # Auth status python3 audible_cli.py status python3 audible_cli.py status --locale us # Search catalogue python3 audible_cli.py search "Project Hail Mary" python3 audible_cli.py search "Andy Weir" --limit 5 --locale us # View library python3 audible_cli.py library python3 audible_cli.py library --limit 50 # Get book details python3 audible_cli.py info B08G9PRS1K # Purchase (requires explicit --confirm — always verify with user first) python3 audible_cli.py buy B08G9PRS1K --confirm # Wishlist python3 audible_cli.py wishlist python3 audible_cli.py wishlist add B08G9PRS1K ``` ## Workflow **Typical search-and-buy:** 1. `search` — find title, note the ASIN 2. `info <asin>` — confirm correct edition/narrator 3. Confirm purchase with user verbally 4. `buy <asin> --confirm` — execute purchase **Never run `buy` without explicit user confirmation.** ## Marketplace - Auto-detects locale from auth file - Override with `--locale` when needed (e.g. user's account is US but located in AU) - Fallback purchase URL on API failure: `https://www.audible.com/pd/<asin>` (adjust domain per locale) ## Error Handling | Error | Cause | Fix | |---|---|---| | No auth file | Not set up | Run `audible_auth.py` | | 401/403 | Token expired | Re-run `audible_auth.py` | | 404 | Wrong ASIN or locale | Try different `--locale` | | 429 | Rate limited | Wait and retry | | Buy fails | API blocked | Send manual URL to user | | InvalidValue on auth | Code expired | Start auth flow again | ## Notes - `audible` library is unofficial — Amazon may change their API without notice - Auth tokens auto-refresh via device private key; re-auth only needed if device is deregistered - Auth file is chmod 600 (owner-only read/write)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawdible-audiobooks-1776083055 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawdible-audiobooks-1776083055 技能

通过命令行安装

skillhub install clawdible-audiobooks-1776083055

下载 Zip 包

⬇ 下载 clawdible v1.0.1

文件大小: 8.53 KB | 发布时间: 2026-4-14 10:02

v1.0.1 最新 2026-4-14 10:02
clawdible-audiobooks v1.0.1

- Updated documentation for improved clarity and completeness about setup, dependencies, and usage.
- Expanded instructions for cross-platform compatibility, script auto-location, and dependency handling.
- Clarified command examples, workflows, and error causes/fixes.
- Enhanced usage trigger phrases and user guidance for all key features.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部