summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-05-02 14:58:32 -0400
committerAdam Tauber <asciimoo@gmail.com>2015-05-02 14:58:32 -0400
commit93fd1e4c76b2eb3d219a8b146ae9e36b103ae5cf (patch)
treeaf2c5d2f48c4f11a79560f0f9f884209ad580617 /searx/engines/duckduckgo.py
parent81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58 (diff)
parent4689fe341ca7c7231d0409526b9ee0f2eadde445 (diff)
Merge pull request #308 from dalf/versions_upgrade
update versions.cfg to use the current up-to-date packages
Diffstat (limited to 'searx/engines/duckduckgo.py')
-rw-r--r--searx/engines/duckduckgo.py30
1 files changed, 16 insertions, 14 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index e35a6334c..4ac2099ae 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -1,17 +1,19 @@
-## DuckDuckGo (Web)
-#
-# @website https://duckduckgo.com/
-# @provide-api yes (https://duckduckgo.com/api),
-# but not all results from search-site
-#
-# @using-api no
-# @results HTML (using search portal)
-# @stable no (HTML can change)
-# @parse url, title, content
-#
-# @todo rewrite to api
-# @todo language support
-# (the current used site does not support language-change)
+"""
+ DuckDuckGo (Web)
+
+ @website https://duckduckgo.com/
+ @provide-api yes (https://duckduckgo.com/api),
+ but not all results from search-site
+
+ @using-api no
+ @results HTML (using search portal)
+ @stable no (HTML can change)
+ @parse url, title, content
+
+ @todo rewrite to api
+ @todo language support
+ (the current used site does not support language-change)
+"""
from urllib import urlencode
from lxml.html import fromstring