mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
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
This commit is contained in:
parent
0059d08f13
commit
930f724ec6
3 changed files with 110 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue