Closed quyleanh closed 3 years ago
This means spotify-dl was not able to scrape the YoutUbe page. Youtube keeps sending different HTML page at different times, and scraping fails, or that the page was not there in youtube at all
So is it a bug? Because I test with other song. It has the same error.
Other bug I would like to report. If I setup only SPOTIPY_CLIENT_ID
and SPOTIPY_CLIENT_SECRET
, there is error about setup SPOTIPY_REDIRECT_URI
. I have enter export SPOTIPY_REDIRECT_URI=https://spotifydl.sathyabh.at/
to by pass.
After bypassing, the Could not perform scrape search for...
bug appears. I think this script needs to be updated.
@quyleanh that is correct, have opened a new bug about that. What other songs did you try with? The limitation is that songs are searched for from Youtube and if its not there, you can't get it.
@SathyaBhat you can try many songs which are on Youtube but your tool cannot download. Or could you please send me a link of downloadable song?
I found a workaround for this which is generating a YouTube API key and running
export YOUTUBE_DEV_KEY='your-youtube-dev-key'
This allows for downloads that bypass the HTML scraper (i'm assuming)
I found a workaround for this which is generating a YouTube API key and running
export YOUTUBE_DEV_KEY='your-youtube-dev-key'
This allows for downloads that bypass the HTML scraper (i'm assuming)
@BenjaminCronin That is expected and documented. That said, Youtube's quotas for a free key are quite restrictive and you can only do ~100 searches per day. The scraper is to a workaround to get around the quota limits, but if YouTube serves a different HTML (or changes the structure), the scraper breaks.
@SathyaBhat you can investigate the method youtube-dlc and spotify-downloader handle with youtube.
As I compare, your tool needs some library which I have to install in system, when others do not require it.
SpotDL needs ffmpeg just like mine. youtube-dlc is a fork of youtube-dl which this project uses and also needs ffmpeg for mp3 conversion. If you don’t need the mp3 conversion you can skip as documented in getting started
No. I didn't mean ffmpeg. There are some lib required when I install with pip command.
Error: Please make sure the libxml2 and libxslt development packages are installed.
You can check by yourself.
Those are used by the libraries, presumably the ones which scrapes the HTML
So you can investigate the method which my two suggestions do not require. As I can see, the scrape HTLM is problem, right? May be you can fix this bug and make your tool better?
I've updated to remove my custom YT search in favour of youtube-dl which was anyway doing the heavy lifting.
Update the app
pip install spotify_dl --upgrade
Thank you for your update. I will test later. But how about libxml2
and libxslt
requirement? Do we have to use these lib?
Checked and it works fine. Just small thing about lib requirement it will be perfect.
Describe the bug I use spotify-dl for downloading this playlist and get the error.
To Reproduce Enter the following command
Expected behavior Download as normally
Log
Desktop (please complete the following information):