summaryrefslogtreecommitdiff
path: root/searx/engines/www1x.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2015-02-01 13:52:43 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2015-02-01 13:52:43 +0100
commita605d0ae698e8a5555935780d83df50b06727f24 (patch)
tree968936514a8f8fcc7b042f0266e2fa34ea80df87 /searx/engines/www1x.py
parent7e30633edd823d7692836320004e7a920210fdc0 (diff)
downloadsearxng-a605d0ae698e8a5555935780d83df50b06727f24.tar.gz
searxng-a605d0ae698e8a5555935780d83df50b06727f24.zip
[enh] add test for 1x.com
Diffstat (limited to 'searx/engines/www1x.py')
-rw-r--r--searx/engines/www1x.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/www1x.py b/searx/engines/www1x.py
index d10c4ca37..a68c105ce 100644
--- a/searx/engines/www1x.py
+++ b/searx/engines/www1x.py
@@ -36,7 +36,8 @@ def response(resp):
results = []
# get links from result-text
- results_parts = re.split(r'(</a>|<a)', resp.text)
+ regex = re.compile('(</a>|<a)')
+ results_parts = re.split(regex, resp.text)
cur_element = ''