Loading searx/engines/google.py +2 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ url_map = 'https://www.openstreetmap.org/'\ search_path = '/search' search_url = ('https://{hostname}' + search_path + '?{query}&start={offset}&gbv=1&gws_rd=cr') '?{query}&start={offset}&gbv=1&gws_rd=ssl') # other URLs map_hostname_start = 'maps.google.' Loading @@ -99,7 +99,7 @@ redirect_path = '/url' images_path = '/images' # specific xpath variables results_xpath = '//li[@class="g"]' results_xpath = '//div[@class="g"]' url_xpath = './/h3/a/@href' title_xpath = './/h3' content_xpath = './/span[@class="st"]' Loading searx/tests/engines/test_google.py +10 −10 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ class TestGoogleEngine(SearxTestCase): self.assertEqual(google.response(response), []) html = """ <li class="g"> <div class="g"> <h3 class="r"> <a href="http://this.should.be.the.link/"> <b>This</b> is <b>the</b> title Loading Loading @@ -94,35 +94,35 @@ class TestGoogleEngine(SearxTestCase): </a> </div> </div> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="http://www.google.com/images?q=toto"> <b>This</b> </a> </h3> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="http://www.google.com/search?q=toto"> <b>This</b> is </a> </h3> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="€"> <b>This</b> is <b>the</b> </a> </h3> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="/url?q=url"> <b>This</b> is <b>the</b> </a> </h3> </li> </div> <p class="_Bmc" style="margin:3px 8px"> <a href="/search?num=20&safe=off&q=t&revid=1754833769&sa=X&ei=-&ved="> suggestion <b>title</b> Loading Loading
searx/engines/google.py +2 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ url_map = 'https://www.openstreetmap.org/'\ search_path = '/search' search_url = ('https://{hostname}' + search_path + '?{query}&start={offset}&gbv=1&gws_rd=cr') '?{query}&start={offset}&gbv=1&gws_rd=ssl') # other URLs map_hostname_start = 'maps.google.' Loading @@ -99,7 +99,7 @@ redirect_path = '/url' images_path = '/images' # specific xpath variables results_xpath = '//li[@class="g"]' results_xpath = '//div[@class="g"]' url_xpath = './/h3/a/@href' title_xpath = './/h3' content_xpath = './/span[@class="st"]' Loading
searx/tests/engines/test_google.py +10 −10 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ class TestGoogleEngine(SearxTestCase): self.assertEqual(google.response(response), []) html = """ <li class="g"> <div class="g"> <h3 class="r"> <a href="http://this.should.be.the.link/"> <b>This</b> is <b>the</b> title Loading Loading @@ -94,35 +94,35 @@ class TestGoogleEngine(SearxTestCase): </a> </div> </div> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="http://www.google.com/images?q=toto"> <b>This</b> </a> </h3> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="http://www.google.com/search?q=toto"> <b>This</b> is </a> </h3> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="€"> <b>This</b> is <b>the</b> </a> </h3> </li> <li class="g"> </div> <div class="g"> <h3 class="r"> <a href="/url?q=url"> <b>This</b> is <b>the</b> </a> </h3> </li> </div> <p class="_Bmc" style="margin:3px 8px"> <a href="/search?num=20&safe=off&q=t&revid=1754833769&sa=X&ei=-&ved="> suggestion <b>title</b> Loading