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
30ad0c66
Commit
30ad0c66
authored
Dec 02, 2019
by
Markus Heiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duckduckgo_definitions: remove the debug message
Signed-off-by:
Markus Heiser
<
markus.heiser@darmarit.de
>
parent
b6d9f5aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
duckduckgo_definitions.py
searx/engines/duckduckgo_definitions.py
+0
-4
No files found.
searx/engines/duckduckgo_definitions.py
View file @
30ad0c66
...
...
@@ -12,14 +12,11 @@ DuckDuckGo (definitions)
import
json
from
lxml
import
html
from
re
import
compile
import
logging
from
searx.engines.xpath
import
extract_text
from
searx.engines.duckduckgo
import
_fetch_supported_languages
,
supported_languages_url
,
language_aliases
from
searx.url_utils
import
urlencode
from
searx.utils
import
html_to_text
,
match_language
logger
=
logging
.
getLogger
(
'searx.engines.'
+
__name__
)
url
=
'https://api.duckduckgo.com/'
\
+
'?{query}&format=json&pretty=0&no_redirect=1&d=1'
...
...
@@ -41,7 +38,6 @@ def request(query, params):
language
=
match_language
(
params
[
'language'
],
supported_languages
,
language_aliases
)
language
=
language
.
split
(
'-'
)[
0
]
params
[
'headers'
][
'Accept-Language'
]
=
language
logger
.
debug
(
"query
%
s: // headers:
%
s"
,
params
[
'url'
],
params
[
'headers'
])
return
params
...
...
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