diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2014-12-16 20:40:03 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2014-12-16 20:40:03 +0100 |
commit | 930f724ec639c167d870d716240ac5d4512beba2 (patch) | |
tree | 97b3c13dd0345cf662d55fb48e47c9f160a3392f /searx/engines/flickr.py | |
parent | 0059d08f13b1bf64b3f36ab2cbe89d5fec5d727c (diff) | |
download | searxng-930f724ec639c167d870d716240ac5d4512beba2.tar.gz searxng-930f724ec639c167d870d716240ac5d4512beba2.zip |
Add an No Api Flickr Engine
It uses the webpage json infos to build the results
Let the user choose the engine in setting.yml. Noapi active by default
+ little corrections on Flickr engine
Diffstat (limited to 'searx/engines/flickr.py')
-rw-r--r-- | searx/engines/flickr.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/flickr.py b/searx/engines/flickr.py index 8b60aed1d..2fa5ed7ec 100644 --- a/searx/engines/flickr.py +++ b/searx/engines/flickr.py @@ -13,9 +13,6 @@ from urllib import urlencode from json import loads -from urlparse import urljoin -from lxml import html -from time import time categories = ['images'] @@ -70,7 +67,7 @@ def response(resp): content = '<span class="photo-author">'+ photo['ownername'] +'</span><br />' - content = content + ' <span class="description">' + photo['description']['_content'] + '</span>' + content = content + '<span class="description">' + photo['description']['_content'] + '</span>' # append result results.append({'url': url, |