SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] several fixes
asciimoob1a996ef4af4
diff --git a/searx/engines/flickr.py b/searx/engines/flickr.pyindex 3c8d1d931..60e2b6f3b 100755--- a/searx/engines/flickr.py+++ b/searx/engines/flickr.py@@ -4,26 +4,25 @@ from urllib import quotefrom lxml import htmlfrom urlparse import urljoin-categories = ['img']+categories = ['images']base_url = 'https://secure.flickr.com/'search_url = base_url+'search/?q='def request(query, params):global search_url- print 'qqwerqwerqwerqwer'query = quote(query.replace(' ', '+'), safe='+')params['url'] = search_url + queryreturn paramsdef response(resp):global base_url- print 'asdfasdfasdf'results = []dom = html.fromstring(resp.text)- for result in dom.xpath('//#thumbnails//a'):+ for result in dom.xpath('//div[@id="thumbnails"]//a[@class="rapidnofollow photo-click" and @data-track="photo-click"]'):url = urljoin(base_url, result.attrib.get('href'))- title = result.xpath('./img')[0].attrib.get('alt')- content = "<img src='%s'></img>" % result.xpath('./img')[0].attrib.get('src')+ img = result.xpath('.//img')[0]+ title = img.attrib.get('alt', '')+ content = '<img src="%s" alt="%s" />' % (img.attrib.get('data-defer-src', ''), title)results.append({'url': url, 'title': title, 'content': content})return results