mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update moegirl.py
This commit is contained in:
parent
f2175ebec9
commit
dfc8babc50
1 changed files with 1 additions and 2 deletions
|
@ -69,8 +69,7 @@ def response(resp):
|
||||||
url = (
|
url = (
|
||||||
base_url + quote(result['title'].replace(' ', '_').encode())
|
base_url + quote(result['title'].replace(' ', '_').encode())
|
||||||
)
|
)
|
||||||
tag_re = re.compile(r'<[^>]+>')
|
result['snippet'] = re.sub('<.*?>', result['snippet'])
|
||||||
result['snippet'] = tag_re.sub('', result['snippet'])
|
|
||||||
result['snippet'] = result['snippet'].replace("此条目介绍的作品或其衍生作品中有至少一项尚未完结。","").replace("萌娘百科不是新闻的搜集处。欢迎在情报相对明朗并确认资料来源准确性后编辑更新。","")
|
result['snippet'] = result['snippet'].replace("此条目介绍的作品或其衍生作品中有至少一项尚未完结。","").replace("萌娘百科不是新闻的搜集处。欢迎在情报相对明朗并确认资料来源准确性后编辑更新。","")
|
||||||
result['snippet'] = result['snippet'].strip()
|
result['snippet'] = result['snippet'].strip()
|
||||||
# append result
|
# append result
|
||||||
|
|
Loading…
Add table
Reference in a new issue