-
Notifications
You must be signed in to change notification settings - Fork 219
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
Could not perform scrape search for [song name], got a different HTML #115
Comments
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 After bypassing, the |
@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. |
I found a workaround for this which is generating a YouTube API key and running
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. |
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? |
* remove custom YT search in favour of youtubedl's search fixes #115 * remove test not in use anymore * address some lint errors
I've updated to remove my custom YT search in favour of youtube-dl which was anyway doing the heavy lifting. Update the app
|
Thank you for your update. I will test later. But how about |
Checked and it works fine. |
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):
The text was updated successfully, but these errors were encountered: