KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
30.83k stars 1.28k forks source link

api alternative fetch method #1989

Closed s-b-repo closed 1 month ago

s-b-repo commented 1 month ago

Is there an existing issue for this?

Pain

api access could get denied, blocked or rate limited

Suggested solution

we could use a web scraping tool get the audio directly from the page without rendering video like blocking or ignoring or dropping the video connection then get audio from youtube

Useful resources

course https://www.youtube.com/watch?v=XVv6mJpFOb0&pp=ygUUd2ViIHNjcmFwaW5nICBjb3Vyc2U%3D

Additional information

No response

Self grab

s-b-repo commented 1 month ago

also we can use a user-agent spoofer to avoid detection while scraping like chamelion

KRTirtho commented 1 month ago

This is not how it works here. Spotube uses a library youtube_explode_dart. And we only use the audio stream of the video. Not the whole video