Provide a more resilient and reliable searx instance
This commit is contained in:
parent
397a805ffd
commit
15b0505b96
1 changed files with 4 additions and 4 deletions
|
@ -52,11 +52,11 @@ impl SearchEngine for Searx {
|
||||||
|
|
||||||
let url: String = match page {
|
let url: String = match page {
|
||||||
0 | 1 => {
|
0 | 1 => {
|
||||||
format!("https://searx.work/search?q={query}&pageno=1&safesearch={safe_search}")
|
format!("https://searx.be/search?q={query}&pageno=1&safesearch={safe_search}")
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
format!("https://searx.be/search?q={query}&pageno={page}&safesearch={safe_search}")
|
||||||
}
|
}
|
||||||
_ => format!(
|
|
||||||
"https://searx.work/search?q={query}&pageno={page}&safesearch={safe_search}"
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// initializing headers and adding appropriate headers.
|
// initializing headers and adding appropriate headers.
|
||||||
|
|
Loading…
Add table
Reference in a new issue