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)
|
handle.write(data)
|
||||||
|
|
||||||
print('Waiting 10 seconds between downloads')
|
print('Waiting 10 seconds between downloads')
|
||||||
#for _ in tqdm(range(10), unit = 's', unit_scale = True):
|
for _ in tqdm(range(10), unit = 's', unit_scale = True):
|
||||||
# time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
#print('Waiting 60 seconds between pages')
|
print('Waiting 60 seconds between pages')
|
||||||
#for _ in tqdm(range(60), unit = 's', unit_scale = True):
|
for _ in tqdm(range(60), unit = 's', unit_scale = True):
|
||||||
# time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
with open("last_page", "w") as f:
|
with open("last_page", "w") as f:
|
||||||
f.write(str(page_index))
|
f.write(str(page_index))
|
||||||
|
|||||||
Reference in New Issue
Block a user