logo

searx

My custom branche(s) on searx, a meta-search engine
commit: ef7e1199c3b9fad5b47af474423dedc356c6c2c2
parent: 9ad8013a4578dc8069227d3e9de88d734089828e
Author: asciimoo <asciimoo@gmail.com>
Date:   Tue, 22 Oct 2013 19:15:30 +0200

[enh] displaying seeders/leechers

Diffstat:

Msearx/engines/piratebay.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py @@ -30,5 +30,7 @@ def response(resp): url = urljoin(base_url, link.attrib.get('href')) title = ' '.join(link.xpath('.//text()')) content = escape(' '.join(result.xpath('.//font[@class="detDesc"]//text()'))) + seed, leech = result.xpath('.//td[@align="right"]/text()')[:2] + content += '<br />Seed: %s, Leech: %s' % (seed, leech) results.append({'url': url, 'title': title, 'content': content}) return results