spotify-hub

Control Spotify playback and library actions via Python and Spotipy.

361|58|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/OpenMinis/MinisSkills --skill spotify-hub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spotify-hub
Source: https://github.com/OpenMinis/MinisSkills/tree/main/spotify-hub
Command: npx skills add https://github.com/OpenMinis/MinisSkills --skill spotify-hub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spotipy>=2.26.0, and includes scripts (resource) components.

What problem does it solve?

通过 Python + Spotipy 实现对 Spotify 播放的编程控制、包括播放/暂停、切歌、调节音量、随机、搜索并播放以及按关键词混合生成歌单等,以简化跨设备操作和自动化工作流。

Core Features & Use Cases

  • Spotipy 驱动的播放控制:使用 spotipy 调用 Spotify Web API 实现播放/暂停、切歌、音量、随机、循环、搜索并播放、创建和管理歌单等核心功能。
  • 多场景应用:适用于需要在应用内嵌入 Spotify 控制、实现自动化播放队列、或按关键词混合生成歌单的开发者与高级用户。
  • 状态与设备管理:提供当前播放状态、设备列表、以及对活跃设备的选择和控制能力。

Quick Start

进行 Spotify 授权后,运行 spotify-hub 脚本开始控制播放。

Frequently Asked Questions about spotify-hub

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control Spotify playback using Python and Spotipy?

You can control Spotify playback using Python and Spotipy by executing scripts that implement OAuth authentication and call the Spotify Web API to manage play, pause, skip, and volume actions programmatically.

Can I search and play tracks automatically with Spotipy?

Yes, you can search and play tracks automatically with Spotipy by utilizing the comprehensive playback commands to query tracks by keywords and initiate playback on selected active devices.

How do I manage Spotify multi-device playback in Python?

Manage Spotify multi-device playback in Python by retrieving the available device list, selecting an active device, and directing playback commands to the chosen hardware through Spotipy API calls.

Do I need OAuth credentials to create Spotify playlists with Python?

Yes, you need OAuth credentials to create Spotify playlists with Python, as the authentication process authorizes your script to access library actions and modify user playlist data securely.

What are the limitations of using Spotipy for Spotify playback control?

Spotipy playback control depends on having an active Spotify Premium account and at least one connected device, with error handling required to manage API rate limits and inactive device states.