mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
htmlize yacy contents
This commit is contained in:
parent
75c58fd008
commit
16c40ffefd
@ -16,6 +16,8 @@ from json import loads
|
|||||||
from urllib import urlencode
|
from urllib import urlencode
|
||||||
from dateutil import parser
|
from dateutil import parser
|
||||||
|
|
||||||
|
from searx.utils import html_to_text
|
||||||
|
|
||||||
# engine dependent config
|
# engine dependent config
|
||||||
categories = ['general', 'images'] # TODO , 'music', 'videos', 'files'
|
categories = ['general', 'images'] # TODO , 'music', 'videos', 'files'
|
||||||
paging = True
|
paging = True
|
||||||
@ -88,7 +90,7 @@ def response(resp):
|
|||||||
# append result
|
# append result
|
||||||
results.append({'url': result['link'],
|
results.append({'url': result['link'],
|
||||||
'title': result['title'],
|
'title': result['title'],
|
||||||
'content': result['description'],
|
'content': html_to_text(result['description']),
|
||||||
'publishedDate': publishedDate})
|
'publishedDate': publishedDate})
|
||||||
|
|
||||||
# TODO parse video, audio and file results
|
# TODO parse video, audio and file results
|
||||||
|
Loading…
Reference in New Issue
Block a user