summaryrefslogtreecommitdiff
path: root/searx/engines/btdigg.py
diff options
context:
space:
mode:
authorKang-min Liu <gugod@gugod.org>2015-07-19 20:44:02 +0200
committerKang-min Liu <gugod@gugod.org>2015-07-19 20:44:02 +0200
commit01d2fb9f703fee2a28cdb4c6583158054f9d7558 (patch)
treeb3ee2202099f59547b5419a41e651c23a938ef4c /searx/engines/btdigg.py
parenta905e4e7db3f25564742f51e3c43a65db1fbc15e (diff)
downloadsearxng-01d2fb9f703fee2a28cdb4c6583158054f9d7558.tar.gz
searxng-01d2fb9f703fee2a28cdb4c6583158054f9d7558.zip
btdigg engine: fix text mojibake.
Seeing on the official instance, searching with non-ascii character usually renders mojibake non-sense: http://searx.me/?q=%E9%A3%9F%E5%A0%82&categories=files Screenshot with broken: ![](https://imgrush.com/1NNr_Rpv-rt2.png) Screenshot of the fixed rendering: ![](https://imgrush.com/khe4M2P3VAyq.png)
Diffstat (limited to 'searx/engines/btdigg.py')
-rw-r--r--searx/engines/btdigg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/btdigg.py b/searx/engines/btdigg.py
index bde866146..192ed6ee9 100644
--- a/searx/engines/btdigg.py
+++ b/searx/engines/btdigg.py
@@ -38,7 +38,7 @@ def request(query, params):
def response(resp):
results = []
- dom = html.fromstring(resp.text)
+ dom = html.fromstring(resp.content)
search_res = dom.xpath('//div[@id="search_res"]/table/tr')