mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-12-22 12:28:21 -05:00
Provide a more resilient and reliable searx instance
This commit is contained in:
parent
397a805ffd
commit
15b0505b96
@ -52,11 +52,11 @@ impl SearchEngine for Searx {
|
||||
|
||||
let url: String = match page {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user