summaryrefslogtreecommitdiff
path: root/searx/engines/startpage.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-30 02:10:32 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-30 02:10:32 +0100
commit9a74113b1ca1a4a2bcd23421c3594fffa1d50845 (patch)
tree26a542dc131ce2308e3da11c53299bb6abe214e2 /searx/engines/startpage.py
parent7de506bbcd054d3c83c909fd85746cdc8fd86588 (diff)
downloadsearxng-9a74113b1ca1a4a2bcd23421c3594fffa1d50845.tar.gz
searxng-9a74113b1ca1a4a2bcd23421c3594fffa1d50845.zip
[enh] startpage paging init
Diffstat (limited to 'searx/engines/startpage.py')
-rw-r--r--searx/engines/startpage.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index 1b48baa8d..60c90a1e9 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -4,13 +4,18 @@ from lxml import html
base_url = None
search_url = None
+# TODO paging
+paging = False
+
def request(query, params):
global search_url
query = urlencode({'q': query})[2:]
params['url'] = search_url
params['method'] = 'POST'
- params['data'] = {'query': query}
+ params['data'] = {'query': query,
+ 'startat': (params['pageno'] - 1) * 10} # offset
+ print params['data']
return params