Agregado el esperar los 10 segundos
This commit is contained in:
10
scrap.py
10
scrap.py
@@ -43,13 +43,13 @@ for page_index in range(last_page + 1, 75):
|
||||
handle.write(data)
|
||||
|
||||
print('Waiting 10 seconds between downloads')
|
||||
#for _ in tqdm(range(10), unit = 's', unit_scale = True):
|
||||
# time.sleep(1)
|
||||
for _ in tqdm(range(10), unit = 's', unit_scale = True):
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
#print('Waiting 60 seconds between pages')
|
||||
#for _ in tqdm(range(60), unit = 's', unit_scale = True):
|
||||
# time.sleep(1)
|
||||
print('Waiting 60 seconds between pages')
|
||||
for _ in tqdm(range(60), unit = 's', unit_scale = True):
|
||||
time.sleep(1)
|
||||
|
||||
with open("last_page", "w") as f:
|
||||
f.write(str(page_index))
|
||||
|
||||
Reference in New Issue
Block a user