@@ -173,7 +173,7 @@ def _query(self, action, qobj):
173173 if action == 'random' :
174174 qstr = qobj .random ()
175175 elif action == 'query' :
176- qstr = qobj .query (title , pageid )
176+ qstr = qobj .query (title , pageid , self . _continue_params () )
177177 elif action == 'querymore' :
178178 qstr = qobj .querymore (title , pageid , self ._continue_params ())
179179 elif action == 'parse' :
@@ -295,7 +295,7 @@ def _set_query_data(self, action='query'):
295295 data = self ._load_response (action )
296296 page = data ['query' ]['pages' ][0 ]
297297
298- self ._handle_continuations (data , 'querymore' )
298+ self ._handle_continuations (data , action )
299299
300300 if action == 'query' :
301301 self .data ['random' ] = data ['query' ]['random' ][0 ]["title" ]
@@ -637,6 +637,9 @@ def get_query(self, show=True, proxy=None, timeout=0):
637637
638638 self ._get ('query' , show , proxy , timeout )
639639
640+ while self .data .get ('continue' ):
641+ self ._get ('query' , show , proxy , timeout )
642+
640643 return self
641644
642645 def get_querymore (self , show = True , proxy = None , timeout = 0 ):
0 commit comments