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
Merge branch 'integrated-videos' of https://github.com/Cqoicebordel/searx into Cqoicebordel-integrated-videos
Adam Tauber05be069f424f
diff --cc searx/engines/vimeo.pyindex 3949a7299,fd945b319..39033c591--- a/searx/engines/vimeo.py+++ b/searx/engines/vimeo.py@@@ -1,4 -1,4 +1,4 @@@--## Vimeo (Videos)++# Vimeo (Videos)## @website https://vimeo.com/# @provide-api yes (http://developer.vimeo.com/api),@@@ -13,9 -13,10 +13,10 @@@# @todo set content-parameter with correct datafrom urllib import urlencode-from HTMLParser import HTMLParserfrom lxml import html++from HTMLParser import HTMLParser+ from searx.engines.xpath import extract_textfrom dateutil import parser- from cgi import escape# engine dependent configcategories = ['videos']@@@ -26,12 -27,16 +27,16 @@@ base_url = 'http://vimeo.comsearch_url = base_url + '/search/page:{pageno}?{query}'# specific xpath variables+results_xpath = '//div[@id="browse_content"]/ol/li'url_xpath = './a/@href'+title_xpath = './a/div[@class="data"]/p[@class="title"]'content_xpath = './a/img/@src'-title_xpath = './a/div[@class="data"]/p[@class="title"]/text()'-results_xpath = '//div[@id="browse_content"]/ol/li'publishedDate_xpath = './/p[@class="meta"]//attribute::datetime'+ embedded_url = '<iframe data-src="//player.vimeo.com/video{videoid}" ' +\+ 'width="540" height="304" frameborder="0" ' +\+ 'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'+# do search-requestdef request(query, params):@@@ -46,6 -55,8 +51,7 @@@ def response(resp)results = []dom = html.fromstring(resp.text)-+ p = HTMLParser()# parse resultsfor result in dom.xpath(results_xpath):