mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 10:02:20 +02:00
[enh] removing result html tags
This commit is contained in:
parent
14a53e3430
commit
17bf00ee42
4 changed files with 7 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
from urllib import quote
|
||||
from urllib import urlencode
|
||||
from lxml import html
|
||||
from urlparse import urlparse
|
||||
from cgi import escape
|
||||
|
@ -8,7 +8,7 @@ search_url = base_url+'do/search'
|
|||
|
||||
def request(query, params):
|
||||
global search_url
|
||||
query = quote(query.replace(' ', '+'), safe='+')
|
||||
query = urlencode({'q': query})[2:]
|
||||
params['url'] = search_url
|
||||
params['method'] = 'POST'
|
||||
params['data'] = {'query': query}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue