Browse Source

[enh] paging added to example engine

asciimoo 11 years ago
parent
commit
a6df9c82d7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/basic_engine.py

+ 2 - 0
examples/basic_engine.py

@@ -8,6 +8,8 @@ def request(query, params):
       headers : {}
       headers : {}
       data    : {} # if method == POST
       data    : {} # if method == POST
       url     : ''
       url     : ''
+      category: 'search category'
+      pageno  : 1 # number of the requested page
     '''
     '''
 
 
     params['url'] = 'https://host/%s' % query
     params['url'] = 'https://host/%s' % query