Diogo Canut commited on
Commit
15b0505
1 Parent(s): 397a805

Provide a more resilient and reliable searx instance

Browse files
Files changed (1) hide show
  1. src/engines/searx.rs +4 -4
src/engines/searx.rs CHANGED
@@ -52,11 +52,11 @@ impl SearchEngine for Searx {
52
 
53
  let url: String = match page {
54
  0 | 1 => {
55
- format!("https://searx.work/search?q={query}&pageno=1&safesearch={safe_search}")
 
 
 
56
  }
57
- _ => format!(
58
- "https://searx.work/search?q={query}&pageno={page}&safesearch={safe_search}"
59
- ),
60
  };
61
 
62
  // initializing headers and adding appropriate headers.
 
52
 
53
  let url: String = match page {
54
  0 | 1 => {
55
+ format!("https://searx.be/search?q={query}&pageno=1&safesearch={safe_search}")
56
+ }
57
+ _ => {
58
+ format!("https://searx.be/search?q={query}&pageno={page}&safesearch={safe_search}")
59
  }
 
 
 
60
  };
61
 
62
  // initializing headers and adding appropriate headers.