zobnin / aio

AIO Launcher page for bug reports and suggestions
17 stars 1 forks source link

No Web Results when using Startpage as a search provider #17

Closed antdking closed 2 years ago

antdking commented 2 years ago

Describe the bug Pretty much on the tin. No Web results when using Startpage, only on-device results. With + without VPN. DuckDuckGo results work fine.

To Reproduce Steps to reproduce the behavior:

  1. Set Startpage as your search provider
  2. Go to 'Home'
  3. Click on 'search'
  4. Type a search term (Hello World)
  5. No results

Expected behavior Either:

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context I understand if this a feature to be implemented. I've raised as a bug instead; as, to a user, this is unexpected without messaging to explain it's not supported well, like what you do for under-screen fingerprints.

zobnin commented 2 years ago

Hm... StartPage removed its suggestions API so I will remove its support in the next version

antdking commented 2 years ago

Oh no, please don't drop Startpage. Perhaps allow us to set our own search url, basic substitution? It's useful to be able to type before opening the full browser (better app + Web being together)

zobnin commented 2 years ago

Yes, I will make it possible to add any search engine manually. No worries.

zobnin commented 2 years ago

AIO Launcher 4.4.0-beta13 now supports the connection of any search engine. To do this, you need to specify the address of the search query in the "Own search engine" option, replacing the search string with %s. For example:

https://google.com/search?q=%s
https://www.qwant.com/?q=%s
https://www.startpage.com/do/search?q=%s
https://engine.presearch.org/search?q=%s
antdking commented 2 years ago

just gotten to a computer.

Suggestions now require the segment GET parameter to be present to give results, so might be simple for you to add the results back in. You can leave it blank, or set text, just so long as it's present.

curl -v 'https://www.startpage.com/suggestions?q=hello%20there&segment='
{"extended_data": {}, "suggestions": [{"text": "hello there"}, {"text": "..."}, {"text": "..."}]}

It looks related to their analytics; so best to play nice, and put segment=AIOLauncher, or something unique to your app.

zobnin commented 2 years ago

I don't see the point of bringing back support for a search engine that changes its API without warning, without maintaining backward compatibility. It would cost me more.

zobnin commented 2 years ago

You can write a simple search script that will handle search suggestions. Probably, a little later I will show an example of such a script for startpage.

zobnin commented 2 years ago

https://github.com/zobnin/aiolauncher_scripts/blob/master/community/starpage-search.lua

mj-sson commented 1 year ago

I stumbled across these messages after randomly installing the startpage script from the AIO Store. They appear every time you type a letter in search. Since I don't use startpage myself, I don't really know what they mean, but I thought I'd report it in case it's something important. Otherwise, please ignore this comment.

Screenshot_20230930-135933.png

Screenshot_20230930-222302.png

Screenshot_20230930-222339.png

Screenshot_20230930-222231.png

AIO Version: 4.9.1-beta4 Android: 13 Device: Google Pixel 7