Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify Playlists are not scraped correctly - return 0 tracks - throws error #5

Open
antreos opened this issue Oct 9, 2022 · 0 comments

Comments

@antreos
Copy link

antreos commented Oct 9, 2022

Steps to reproduce:

spotify-playlist-to-json_1  | Task started at 10/9/2022, 2:00:36 PM
spotify-playlist-to-json_1  | Starting headless browser...
spotify-playlist-to-json_1  | Navigating to https://open.spotify.com/playlist/2pHqqz3F61MDWcOAlMC6ML
spotify-playlist-to-json_1  | Navigating to bottom of page until scrolling stops to collect all songs for playlist; this will take awhile...
spotify-playlist-to-json_1  | Found 0 tracks!
spotify-playlist-to-json_1  | Retrieving metadata took 20.852 seconds.
spotify-playlist-to-json_1  | (node:17) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'attribs' of undefined
spotify-playlist-to-json_1  |     at getCss (/opt/app/node_modules/cheerio/lib/api/css.js:69:25)
spotify-playlist-to-json_1  |     at initialize.exports.css (/opt/app/node_modules/cheerio/lib/api/css.js:25:12)
spotify-playlist-to-json_1  |     at SpotifyScraper.getPlaylist (/opt/app/src/spotify.scraper.js:54:14)
spotify-playlist-to-json_1  |     at processTicksAndRejections (internal/process/task_queues.js:89:5)
spotify-playlist-to-json_1  |     at async /opt/app/src/server.js:23:26
spotify-playlist-to-json_1  | (node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

Result (via http://localhost:3000/playlist/result/37i9dQZF1DX4jP4eebSWR9 ) will be stuck at:

{"found":true,"status":"downloading"}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant