whoogle-search/app
Ben Busby 634d179568
Use farside.link for frontend alternatives in results (#560)
* Integrate Farside into Whoogle

When instances are ratelimited (when a captcha is returned instead of
the user's search results) the user can now hop to a new instance via
Farside, a new backend service that redirects users to working instances
of a particular frontend. In this case, it presents a user with a
Farside link to a new Whoogle (or Searx) instance instead, so that the
user can resume their search.

For the generated Farside->Whoogle link, the generated link includes the
user's current Whoogle configuration settings as URL params, to ensure a
more seamless transition between instances. This doesn't translate to
the Farside->Searx link, but potentially could with some changes.

* Expand conversion of config<->url params

Config settings can now be translated to and from URL params using a
predetermined set of "safe" keys (i.e. config settings that easily
translate to URL params).

* Allow jumping instances via Farside when ratelimited

When instances are ratelimited (when a captcha is returned instead of
the user's search results) the user can now hop to a new instance via
Farside, a new backend service that redirects users to working instances
of a particular frontend. In this case, it presents a user with a
Farside link to a new Whoogle (or Searx) instance instead, so that the
user can resume their search.

For the generated Farside->Whoogle link, the generated link includes the
user's current Whoogle configuration settings as URL params, to ensure a
more seamless transition between instances. This doesn't translate to
the Farside->Searx link, but potentially could with some changes.

Closes #554

Closes #559
2021-12-08 17:27:33 -07:00
..
models Use farside.link for frontend alternatives in results (#560) 2021-12-08 17:27:33 -07:00
static Use farside.link for frontend alternatives in results (#560) 2021-12-08 17:27:33 -07:00
templates Use farside.link for frontend alternatives in results (#560) 2021-12-08 17:27:33 -07:00
utils Use farside.link for frontend alternatives in results (#560) 2021-12-08 17:27:33 -07:00
__init__.py Improve cookie security when `HTTPS_ONLY` is set 2021-11-20 16:34:37 -07:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Fix incorrect request type for image searches 2021-12-06 21:39:50 -07:00
request.py Use farside.link for frontend alternatives in results (#560) 2021-12-08 17:27:33 -07:00
routes.py Use farside.link for frontend alternatives in results (#560) 2021-12-08 17:27:33 -07:00