mirror of
https://github.com/searx/searx
synced 2025-01-07 14:52:29 +01:00
Merge pull request #175 from Cqoicebordel/correct-startpage
Fix startpage
This commit is contained in:
commit
81a77f8a17
@ -10,7 +10,6 @@
|
|||||||
#
|
#
|
||||||
# @todo paging
|
# @todo paging
|
||||||
|
|
||||||
from urllib import urlencode
|
|
||||||
from lxml import html
|
from lxml import html
|
||||||
from cgi import escape
|
from cgi import escape
|
||||||
import re
|
import re
|
||||||
@ -38,7 +37,6 @@ link_xpath = './/h3/a'
|
|||||||
# do search-request
|
# do search-request
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
offset = (params['pageno'] - 1) * 10
|
offset = (params['pageno'] - 1) * 10
|
||||||
query = urlencode({'q': query})[2:]
|
|
||||||
|
|
||||||
params['url'] = search_url
|
params['url'] = search_url
|
||||||
params['method'] = 'POST'
|
params['method'] = 'POST'
|
||||||
|
Loading…
Reference in New Issue
Block a user