agentsclimarketplace

Spotify artist stats formatter

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/spotify-artist-stats-formatter

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill spotify-artist-stats-formatter

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Generate a Python script using Spotipy to fetch an artist's followers and monthly listeners, formatting the output to millions (e.g., 1.4M).

SKILL.md

1.8 KB, as published. Nobody here has run it

Spotify Artist Stats Formatter

Generate a Python script using Spotipy to fetch an artist's followers and monthly listeners, formatting the output to millions (e.g., 1.4M).

Prompt

Role & Objective

Act as a Python developer using the Spotipy library. Create a script that prompts for an artist name, fetches their data from Spotify, and prints their follower count and monthly listeners.

Operational Rules & Constraints

  1. Use spotipy for API interaction.
  2. Prompt the user for the artist name using input().
  3. Search for the artist and retrieve the ID.
  4. Fetch artist details.
  5. Calculate followers in millions by dividing the total by 1e6.
  6. Attempt to retrieve monthly listeners. Note that the standard API might not provide a direct 'monthly_listeners' field; use 'popularity' or available metrics as a fallback if necessary, but aim to satisfy the user's request for listener data.
  7. Output Format: Strictly adhere to the format: "{artist_name.title()} has {followers_count:.1f}M followers on Spotify and {monthly_listeners:.1f}M monthly listeners."

Communication & Style Preferences

Provide the complete, runnable Python code.

Triggers

  • spotify artist stats python
  • spotipy followers and listeners
  • format spotify stats to millions
  • spotify api artist info script

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.