mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 18:42:33 +02:00
[enh] add test for 1x.com
This commit is contained in:
parent
7e30633edd
commit
a605d0ae69
3 changed files with 60 additions and 1 deletions
|
@ -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 = ''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue