← 返回
数据分析 Key 中文

Spotify

Full Spotify Premium control + music analysis. Playback: play/pause/next/prev/volume/shuffle/queue. Analysis: top tracks, top artists, liked songs, genre pro...
Full Spotify Premium control + music analysis. Playback: play/pause/next/prev/volume/shuffle/queue. Analysis: top tracks, top artists, liked songs, genre pro...
mixx85
数据分析 clawhub v2.0.1 2 版本 99842.5 Key: 需要
★ 2
Stars
📥 1,228
下载
💾 27
安装
2
版本
#latest

概述

spotify-claw

Full Spotify Premium control with music analysis and smart discovery.

> ALWAYS run python3 ~/.openclaw/scripts/spotify.py [cmd] — never respond with text only.

✨ What makes this different

FeatureThis skillBasic Spotify skills
-----------------------------------------
Playback control✅ play/pause/next/prev/volume/shuffle/queue
Auto-launch Spotify✅ opens app if closed, waits, then plays
Music taste analysis✅ top tracks/artists across 3 time periods
Genre profile✅ full genre breakdown
Music discovery✅ works without blocked recommendations API
Liked tracks analysis✅ search, filter by artist
One-command playlists✅ creates + fills playlist in one command
Multi-language triggers✅ English + Russian

Setup (first time)

  1. Create app at developer.spotify.com/dashboard

— Add redirect URI: http://127.0.0.1:8888/callback

  1. Add to macOS Keychain:
  2. security add-generic-password -a openclaw -s openclaw.spotify.client_id -w "CLIENT_ID"
    security add-generic-password -a openclaw -s openclaw.spotify.client_secret -w "CLIENT_SECRET"
    
  1. First auth — run now, browser opens, log in once:
  2. python3 ~/.openclaw/scripts/spotify.py now
    

Playback Commands

python3 ~/.openclaw/scripts/spotify.py play                          # resume
python3 ~/.openclaw/scripts/spotify.py play "track name"             # search & play
python3 ~/.openclaw/scripts/spotify.py play spotify:track:URI        # by URI
python3 ~/.openclaw/scripts/spotify.py play spotify:playlist:ID      # playlist
python3 ~/.openclaw/scripts/spotify.py pause
python3 ~/.openclaw/scripts/spotify.py next
python3 ~/.openclaw/scripts/spotify.py prev
python3 ~/.openclaw/scripts/spotify.py volume 70
python3 ~/.openclaw/scripts/spotify.py volume up
python3 ~/.openclaw/scripts/spotify.py volume down
python3 ~/.openclaw/scripts/spotify.py shuffle on
python3 ~/.openclaw/scripts/spotify.py shuffle off
python3 ~/.openclaw/scripts/spotify.py queue "track name"
python3 ~/.openclaw/scripts/spotify.py now
python3 ~/.openclaw/scripts/spotify.py devices

Auto-launch: If Spotify is closed, play opens the app automatically, waits for init, then plays.


Analysis Commands

python3 ~/.openclaw/scripts/spotify.py top-tracks [short|medium|long] [limit]
python3 ~/.openclaw/scripts/spotify.py top-artists [short|medium|long] [limit]
python3 ~/.openclaw/scripts/spotify.py recent [limit]
python3 ~/.openclaw/scripts/spotify.py liked [limit]
python3 ~/.openclaw/scripts/spotify.py liked-all
python3 ~/.openclaw/scripts/spotify.py liked-by-artist "Artist Name"
python3 ~/.openclaw/scripts/spotify.py genres [short|medium|long]
python3 ~/.openclaw/scripts/spotify.py playlists
python3 ~/.openclaw/scripts/spotify.py search "query" [track|artist|album] [limit]
python3 ~/.openclaw/scripts/spotify.py track-info URI

Periods: short = 4 weeks · medium = 6 months · long = all time


Discovery & Playlist Builder

# Find new music by genre profile
python3 ~/.openclaw/scripts/spotify.py discover

# Expand from specific artist (depth=hops, n=tracks per artist)
python3 ~/.openclaw/scripts/spotify.py discover "Portishead" 3 3

# Related artists
python3 ~/.openclaw/scripts/spotify.py related-artists "The Cure" 10

# Top tracks of any artist
python3 ~/.openclaw/scripts/spotify.py artist-top-tracks "Massive Attack" 5

# Create playlist from top tracks (one command: creates + fills)
python3 ~/.openclaw/scripts/spotify.py make-playlist "Top March 2026" short 20

# Manage playlists
python3 ~/.openclaw/scripts/spotify.py create-playlist "My Playlist" "Description"
python3 ~/.openclaw/scripts/spotify.py add-to-playlist PLAYLIST_ID URI1 URI2

> Note: Spotify's recommendations and audio_features APIs are blocked for new developer apps (return 403/404). This skill uses related_artists + artist_top_tracks for discovery instead.


Agent Tips

  • Use playlists to list user's playlists with IDs before playing one
  • Use now to confirm what's playing after a play command
  • Use liked-by-artist to find tracks for a themed playlist
  • Chain: related-artistsartist-top-tracksadd-to-playlist for smart playlist building
  • genres long gives the most accurate taste profile

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-05-03 03:00 安全 安全
  • v1.1.0
    2026-03-29 07:31

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,019

Spotify Openclaw

mixx85
完整的 Spotify Premium 控制 + 深度音乐智能,专为 OpenClaw 设计。播放控制:按名称/URI/播放列表播放、暂停、下一首、上一首、音量、随机播放、队列管理。自动...
★ 0 📥 768
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,123