[GH-ISSUE #94] [BUG] Playlist scraping outputs an error even if succesful #90

Open
opened 2026-03-13 23:01:47 +03:00 by kerem · 0 comments
Owner

Originally created by @fautore on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/AliAkhtari78/SpotifyScraper/issues/94

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
Originally created by @fautore on GitHub (Jan 29, 2026). Original GitHub issue: https://github.com/AliAkhtari78/SpotifyScraper/issues/94 **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 ```bash > 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SpotifyScraper#90
No description provided.