Skip to content

[BUG] Playlist scraping outputs an error even if succesful #94

@fautore

Description

@fautore

Describe the bug
Playlist scraping outputs an error even if the playlist metadata is correctly output to the json file.

To Reproduce
Simply follow the CLI instructions in README.md

> spotify-scraper playlist https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M --output playlist.json
2026-01-29 09:08:03 - spotify_scraper.client - INFO - SpotifyClient initialized
Extracting playlist information...
2026-01-29 09:08:03 - spotify_scraper.client - INFO - Getting playlist info for https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M
✓ Success: Playlist information saved to playlist.json
✗ Error: Unexpected error: 'list' object has no attribute 'get'

Expected behavior
Shouldn't print '✗ Error: Unexpected error: 'list' object has no attribute 'get''

Actual behavior
prints '✗ Error: Unexpected error: 'list' object has no attribute 'get''

Error messages

✗ Error: Unexpected error: 'list' object has no attribute 'get'

Environment:

  • OS: Ubuntu 24.04.3 LTS
  • Python version: 3.12.3
  • SpotifyScraper version: 2.1.5
  • Installation method: pipx install spotifyscraper

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions