Ahwxorg / LibreY

Framework and JS free privacy respecting meta search engine
GNU Affero General Public License v3.0
197 stars 27 forks source link

Use youtube itself for generating video queries #81

Open davidovski opened 1 year ago

davidovski commented 1 year ago

Currently LibreY gets its video results from a configured invidious instance. However I am concerned that most instance maintainers don't update this to point to a different instance, which may cause unecessary extra load on that instance.

Other than the fact that invidious provides a clean API for video search, I don't see any reason why we shouldn't fetch video results from youtube.com directly, as we are already proxying requests to google.

Ahwxorg commented 1 year ago

Honestly just laziness. I don't feel like coding that in... Also Invidious works fine I guess...

Ahwxorg commented 1 year ago

It is a good idea, however.

codedipper commented 11 months ago

Extra lazy way: Do what we're doing now, rely on one instance.

Lazy way: Rotate official clearnet Invidious instances. You can get this list from here and parse the results to remove hidden services.

Proper way: The Invidious API parses directly from this list.

Actual proper way: Just scrape YouTube itself.

Also, https://invidious.snopyta.org appears to redirect to https://redirect.invidious.io/, which requires JavaScript, which thereby makes video results broken, I think.

Ahwxorg commented 11 months ago

yt.ahwx.org is up I guess? Although I'd rather not be responsible for uptime of a huge project as most people will not change the default.