mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
One reason for the often seen CAPTCHA of the startpage requests are the incomplete requests SearXNG sends to startpage.com. To avoid CAPTCHA we need to send a well formed HTTP POST request with a cookie, we need to form a request that is identical to the request build by startpage.com itself: - in the cookie the **region** is selected - in the POST arguments the **language** is selected Based on the *engine_properties* boilerplate, SearXNG's startpage engine now implements a `_fetch_engine_properties()` function to fetch regions & languages from startpage.com. This patch is a complete new implementation of the request() function, reversed engineered from the startpage.com page. The new implementation adds - time-range support - save-search support to the startpage engine which has been missed in the past. Closes: https://github.com/searxng/searxng/issues/1081 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| ahmia_blacklist.txt | ||
| currencies.json | ||
| engine_descriptions.json | ||
| engines_languages.json | ||
| external_bangs.json | ||
| external_urls.json | ||
| osm_keys_tags.json | ||
| useragents.json | ||
| wikidata_units.json | ||