Skip to content

Commit

Permalink
[fix] google engine: results XPath
Browse files Browse the repository at this point in the history
  • Loading branch information
tiekoetter authored and kvch committed Jul 30, 2022
1 parent 85034b4 commit 86bd82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searx/engines/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
# specific xpath variables
# ------------------------

# google results are grouped into <div class="g ..." ../>
results_xpath = '//div[@id="search"]//div[contains(@class, "g ")]'
# google results are grouped into <div class="jtfYYd ..." ../>
results_xpath = '//div[contains(@class, "jtfYYd")]'
results_xpath_mobile_ui = '//div[contains(@class, "g ")]'

# google *sections* are no usual *results*, we ignore them
Expand Down

0 comments on commit 86bd82d

Please sign in to comment.