Browse Source

[fix] google engine: results XPath

Léon Tiekötter 2 years ago
parent
commit
950f036c03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/google.py

+ 1 - 1
searx/engines/google.py

@@ -112,7 +112,7 @@ filter_mapping = {0: 'off', 1: 'medium', 2: 'high'}
 # ------------------------
 # ------------------------
 
 
 # google results are grouped into <div class="jtfYYd ..." ../>
 # google results are grouped into <div class="jtfYYd ..." ../>
-results_xpath = '//div[@class="jtfYYd"]'
+results_xpath = '//div[contains(@class, "jtfYYd")]'
 
 
 # google *sections* are no usual *results*, we ignore them
 # google *sections* are no usual *results*, we ignore them
 g_section_with_header = './g-section-with-header'
 g_section_with_header = './g-section-with-header'