Overview
- Skill Key
- braydoncoyer/spotify-history
- Author
- braydoncoyer
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/braydoncoyer/spotify-history
- Latest Commit SHA
- 51767708492494e6c62c57db4ee9c2f5eb23493e
Access Spotify listening history, top artists/tracks, and get personalized recommendations via the Spotify Web API. Use when fetching a user's recent plays, analyzing music taste, or generating recommendations. Requires one-time OAuth setup.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 spotify-history 技能。 若已安装,则直接安装 spotify-history 技能。
# Spotify History & Recommendations
Access Spotify listening history and get personalized recommendations.
## Setup (One-Time)
### Quick Setup (Recommended)
Run the setup wizard:
```bash
bash skills/spotify-history/scripts/setup.sh
```
This guides you through:
1. Creating a Spotify Developer App
2. Saving credentials securely
3. Authorizing access
### Manual Setup
1. **Create Spotify Developer App**
- Go to [developer.spotify.com/dashboard](https://developer.spotify.com/dashboard)
- Click **Create App**
- Fill in:
- **App name:** `Clawd` (or any name)
- **App description:** `Personal assistant integration`
- **Redirect URI:** `http://127.0.0.1:8888/callback` ⚠️ Use exact URL!
- Save and copy **Client ID** and **Client Secret**
2. **Store Credentials**
**Option A: Credentials file (recommended)**
```bash
mkdir -p credentials
cat > credentials/spotify.json <<EOF
{
"client_id": "your_client_id",
"client_secret": "your_client_secret"
}
EOF
chmod 600 credentials/spotify.json
```
**Option B: Environment variables**
```bash
# Add to ~/.zshrc or ~/.bashrc
export SPOTIFY_CLIENT_ID="your_client_id"
export SPOTIFY_CLIENT_SECRET="your_client_secret"
```
3. **Authenticate**
**With browser (local machine):**
```bash
python3 scripts/spotify-auth.py
```
**Headless (no browser):**
```bash
python3 scripts/spotify-auth.py --headless
```
Follow the prompts to authorize via URL and paste the callback.
Tokens are saved to `~/.config/spotify-clawd/token.json` and auto-refresh when expired.
## Usage
### Command Line
```bash
# Recent listening history
python3 scripts/spotify-api.py recent
# Top artists (time_range: short_term, medium_term, long_term)
python3 scripts/spotify-api.py top-artists medium_term
# Top tracks
python3 scripts/spotify-api.py top-tracks medium_term
# Get recommendations based on your top artists
python3 scripts/spotify-api.py recommend
# Raw...
# Spotify History & Recommendations Access your Spotify listening history, top artists/tracks, and get personalized recommendations via the Spotify Web API. ## Quick Start ```bash # Run setup wizard bash skills/spotify-history/scripts/setup.sh # Test it python3 scripts/spotify-api.py recent python3 scripts/spotify-api.py top-artists python3 scripts/spotify-api.py recommend ``` ## What It Does - **Listening History**: See what you've been playing recently - **Top Artists/Tracks**: Your most-played artists and tracks (4 weeks, 6 months, or all time) - **Recommendations**: Get personalized music recommendations based on your taste - **Auto-Refresh**: Tokens refresh automatically - set up once, works forever ## Requirements - Python 3.6+ - Spotify account (free or premium) - One-time setup: Spotify Developer App (free, takes 2 minutes) ## Agent Integration When you ask your agent about music: - "What have I been listening to?" - "Who are my top artists?" - "Recommend new music" The agent will: 1. Fetch your Spotify data 2. Analyze your taste 3. Combine API data with music knowledge for personalized recommendations ## Documentation See [SKILL.md](./SKILL.md) for full documentation, troubleshooting, and advanced usage. ## License MIT
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.