SathyaBhat / spotify-dl

Downloads songs from your Spotify Playlist
http://sathyasays.com/2015/12/29/spotify-dl-download-your-spotify-my-music-songs-as-mp3/
MIT License
1.76k stars 214 forks source link

too many requests #364

Open Marcioghiraldelli opened 1 year ago

Marcioghiraldelli commented 1 year ago

I had this same problem in yt-dlp However, I managed to get around it by informing an IP this way yt-dlp --source-address 00.00.00.00

In spotify_dl I couldn't find this option. There is -p which would be a proxy but it didn't work either.


Initiating download for Lynyrd Skynyrd - Free Bird Lyrics. [generic] Extracting URL: Lynyrd Skynyrd - Free Bird Lyrics [youtube:search] Extracting URL: ytsearch:Lynyrd Skynyrd - Free Bird Lyrics [download] Downloading playlist: Lynyrd Skynyrd - Free Bird Lyrics [youtube:search] query "Lynyrd Skynyrd - Free Bird Lyrics": Downloading web client config [youtube:search] query "Lynyrd Skynyrd - Free Bird Lyrics" page 1: Downloading API JSON [youtube:search] Playlist Lynyrd Skynyrd - Free Bird Lyrics: Downloading 1 items of 1 [download] Downloading item 1 of 1 [youtube] Extracting URL: https://www.youtube.com/watch?v=OKAq_G7CXQo [youtube] OKAq_G7CXQo: Downloading webpage WARNING: [youtube] unable to extract initial player response; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U [youtube] OKAq_G7CXQo: Downloading ios player API JSON [youtube] OKAq_G7CXQo: Downloading android player API JSON [youtube] OKAq_G7CXQo: Downloading iframe API JS [youtube] OKAq_G7CXQo: Downloading player de91d1cf [youtube] OKAq_G7CXQo: Downloading web player API JSON [youtube] OKAq_G7CXQo: Downloading m3u8 information WARNING: [youtube] Failed to download m3u8 information: HTTP Error 429: Too Many Requests WARNING: [youtube] unable to extract yt initial data; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U WARNING: [youtube] Incomplete data received in embedded initial data; re-fetching using API. [youtube] OKAq_G7CXQo: Downloading initial data API JSON [info] OKAq_G7CXQo: Downloading 1 format(s): 251 ERROR: unable to download video data: HTTP Error 403: Forbidden Failed to download Free Bird, make sure yt_dlp is up to date Failed to download: /root/Free Bird/Lynyrd Skynyrd - Free Bird.mp3, please ensure YouTubeDL is up-to-date. Download completed in 4.34 seconds.

spattersTatt commented 1 year ago

Howdy I am also seeing this against the Spotify API, returning 429 errors, and the code is not getting thr responce header with the period to wait until next request.

Can a rate limit be put in place, or an option to set one?

SathyaBhat commented 1 year ago

this is coming from youtube, not spotify.. there's nothing much I can do since 429 is saying you are rate limited