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:
Cqoicebordel 2014-12-16 20:40:03 +01:00
parent 0059d08f13
commit 930f724ec6
3 changed files with 110 additions and 8 deletions

View file

@ -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,