Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
0bdf090e
Commit
0bdf090e
authored
Nov 22, 2018
by
Venca24
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] google videos engine
parent
bc7c8a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
google_videos.py
searx/engines/google_videos.py
+3
-3
No files found.
searx/engines/google_videos.py
View file @
0bdf090e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment