alamin655 commited on
Commit
bb06797
2 Parent(s): 64ca6a3 22d0ff7

Merge pull request #438 from neon-mmd/CHORE/432_duckduckgo-engine-code-according-to-the-new-html-changes

Browse files
Files changed (3) hide show
  1. Cargo.lock +1 -1
  2. Cargo.toml +1 -1
  3. src/engines/duckduckgo.rs +2 -2
Cargo.lock CHANGED
@@ -4066,7 +4066,7 @@ checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10"
4066
 
4067
  [[package]]
4068
  name = "websurfx"
4069
- version = "1.6.0"
4070
  dependencies = [
4071
  "actix-cors",
4072
  "actix-files",
 
4066
 
4067
  [[package]]
4068
  name = "websurfx"
4069
+ version = "1.6.1"
4070
  dependencies = [
4071
  "actix-cors",
4072
  "actix-files",
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
  [package]
2
  name = "websurfx"
3
- version = "1.6.0"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
 
1
  [package]
2
  name = "websurfx"
3
+ version = "1.6.1"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
src/engines/duckduckgo.rs CHANGED
@@ -29,8 +29,8 @@ impl DuckDuckGo {
29
  Ok(Self {
30
  parser: SearchResultParser::new(
31
  ".no-results",
32
- ".result",
33
- ".result__a",
34
  ".result__url",
35
  ".result__snippet",
36
  )?,
 
29
  Ok(Self {
30
  parser: SearchResultParser::new(
31
  ".no-results",
32
+ ".results>.result",
33
+ ".result__title>.result__a",
34
  ".result__url",
35
  ".result__snippet",
36
  )?,