anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Suggesting changes in Search and Suggestions API #134

Closed aviaryan closed 7 years ago

aviaryan commented 7 years ago

by @bxute


Hello Developers,

There is a performance enhancement suggestion: For :

Search

Now we are parsing the page which involves scrapping and UTF encoding even. But we have another option to use Youtube Data API for it which provides all the required fields

You can have a check at

https://www.googleapis.com/youtube/v3/search?pageToken=CAUQAA&part=snippet&type=video&key=AIzaSyDHqQpQPaYslA5dw3jYl1LDjlzR3ZpmadU&q=chainsmokers

Suggestions

For the suggestions Part we have

https://www.googleapis.com/youtube/v3/search?part=id&relatedToVideoId=CMfQJQIxGFk&type=video+&key=AIzaSyDHqQpQPaYslA5dw3jYl1LDjlzR3ZpmadU

so it will be best to use it at backend or it can be used at app only, accordingly the api will undergo certain changes.

plz incoperate changes and your point of view.

singhpratyush commented 7 years ago

But they require API keys for Youtube API. That will be a big problem for scale in near future because API keys are exhaustive. This is the primary reason why Youtube-dl uses scraping only for results.

Do you have something in mind for this?

singhpratyush commented 7 years ago

Closing as this doesn't fit in with the project's soul.