Stypox / dicio-android

Dicio assistant app for Android
GNU General Public License v3.0
652 stars 64 forks source link

[Search] More search engines #137

Open machiav3lli opened 1 year ago

machiav3lli commented 1 year ago

DDG is a good start for a list of search engines. Optimally there would an option to define custom search engine, but maybe first it would help to have more options e.g. swisscows, startpage, metager..

A more refined option would be implementing a kinda metasearch engine for users to config, but maybe this would be something for the long term.

RokeJulianLockhart commented 1 year ago

https://github.com/Stypox/dicio-android/issues/137#issue-1523807262

Indeed, @machiav3lli. Why no mere input box exists slightly confuses me, or at least some more normal presets, such as Google.

Stypox commented 1 year ago

I already thought about this, as you can tell from the preference of the search skill, and initially also implemented Qwant, but then they closed the public API and I didn't want to build a scraper.

paolo-caroni commented 4 months ago

I already thought about this, as you can tell from the preference of the search skill, and initially also implemented Qwant, but then they closed the public API and I didn't want to build a scraper.

@Stypox sorry, but I don't understand this answer, would be more simple for you to parse the page of each serach engine to WebView or (I will prefer) to the default Web browser app? for example for duck duck Go open a link to: https://duckduckgo.com/?t=h_&q=[searched_text_here] This will permit to implement very easily any serach engine since you have only to change the first part of the link.

I don't understand why you have choose to implement the search engine result directly in to Dicio with code, in particular since if you click a link you open the default browser app however.

RokeJulianLockhart commented 4 months ago

https://github.com/Stypox/dicio-android/issues/137#issuecomment-1378582683

@Stypox, have you considered https://github.com/searxng/searxng.git instead?

BrightDV commented 4 months ago

#137 (comment)

@Stypox, have you considered searxng/searxng.git instead?

Moreover, SearxNG has a search API with JSON output, so it is easier to add. However, setting the output as JSON is disabled by default, so only a few instances support it. Example: https://search.projectsegfau.lt/search?q=dicio&format=json Additionally, with its !bangs, you can set the search engine for the request.