File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,8 @@ def is_login(self):
310
310
def load_submissions (self ):
311
311
""" load all submissions from leetcode """
312
312
# set limit a big num
313
+ print ('API load submissions request 2 seconds per request' )
314
+ print ('Please wait ...' )
313
315
limit = 20
314
316
offset = 0
315
317
last_key = ''
@@ -320,7 +322,7 @@ def load_submissions(self):
320
322
)
321
323
322
324
resp = self .session .get (submissions_url , proxies = PROXIES )
323
- print (submissions_url , ':' , resp .status_code )
325
+ # print(submissions_url, ':', resp.status_code)
324
326
assert resp .status_code == 200
325
327
data = resp .json ()
326
328
if 'has_next' not in data .keys ():
@@ -330,7 +332,7 @@ def load_submissions(self):
330
332
if data ['has_next' ]:
331
333
offset += limit
332
334
last_key = data ['last_key' ]
333
- print ('last_key:' , last_key )
335
+ # print('last_key:', last_key)
334
336
time .sleep (2 )
335
337
else :
336
338
break
You can’t perform that action at this time.
0 commit comments