summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenca24 <Vaclav.Zouzalik@seznam.cz>2018-11-22 13:00:34 +0100
committerVenca24 <Vaclav.Zouzalik@seznam.cz>2018-11-22 13:00:34 +0100
commit0bdf090ed70ee0c3bf9e42dab0679fe67a1a50f6 (patch)
treeb35f1872766cd15fa40e408a1f374297b16d28ed
parentbc7c8a3973a8614dfb14d97b853c9a46ddcabab1 (diff)
downloadsearxng-0bdf090ed70ee0c3bf9e42dab0679fe67a1a50f6.tar.gz
searxng-0bdf090ed70ee0c3bf9e42dab0679fe67a1a50f6.zip
[fix] google videos engine
-rw-r--r--searx/engines/google_videos.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py
index 310b31490..53acf517d 100644
--- a/searx/engines/google_videos.py
+++ b/searx/engines/google_videos.py
@@ -25,7 +25,7 @@ time_range_support = True
number_of_results = 10
search_url = 'https://www.google.com/search'\
- '?{query}'\
+ '?q={query}'\
'&tbm=vid'\
'&{search_options}'
time_range_attr = "qdr:{range}"
@@ -69,8 +69,8 @@ def response(resp):
# parse results
for result in dom.xpath('//div[@class="g"]'):
- title = extract_text(result.xpath('.//h3/a'))
- url = result.xpath('.//h3/a/@href')[0]
+ title = extract_text(result.xpath('.//h3'))
+ url = result.xpath('.//div[@class="r"]/a/@href')[0]
content = extract_text(result.xpath('.//span[@class="st"]'))
# append result