diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-12-29 16:27:15 +0100 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-01-10 12:46:22 +0100 |
| commit | 44405bd03c14bd62bc68f39dfca7b5d56a97eb14 (patch) | |
| tree | c74774ea1eb5e9375fd2a02b58d46db7bb736dc7 /searx/engines/yep.py | |
| parent | 26e275222b0f831930aef0a6b38e32e56ad78c36 (diff) | |
[fix] yep: fix 403 forbidden errors
Apparently, yep has been broken for a while. Measures to fix it:
- only use HTTP/1.1, because our HTTP2 client gets fingerprinted and blocked
- send the `Origin` HTTP header
Diffstat (limited to 'searx/engines/yep.py')
| -rw-r--r-- | searx/engines/yep.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/yep.py b/searx/engines/yep.py index 726f62c0d..2de18b729 100644 --- a/searx/engines/yep.py +++ b/searx/engines/yep.py @@ -19,6 +19,8 @@ search_type = "web" # 'web', 'images', 'news' safesearch = True safesearch_map = {0: 'off', 1: 'moderate', 2: 'strict'} +enable_http2 = False + def request(query, params): args = { @@ -30,6 +32,7 @@ def request(query, params): } params['url'] = f"{base_url}/fs/2/search?{urlencode(args)}" params['headers']['Referer'] = 'https://yep.com/' + params['headers']['Origin'] = 'https://yep.com' return params |