forked from ticketfrei/ticketfrei
sleep between each crawl run for 15 seconds
This commit is contained in:
parent
31192f5dfe
commit
9a262514fd
|
|
@ -32,9 +32,9 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
|
sleep(15) # rest 15 seconds between each crawl run
|
||||||
for user in db.active_users:
|
for user in db.active_users:
|
||||||
for bot in bots:
|
for bot in bots:
|
||||||
sleep(1)
|
|
||||||
reports = bot.crawl(user)
|
reports = bot.crawl(user)
|
||||||
for status in reports:
|
for status in reports:
|
||||||
if not user.is_appropriate(status):
|
if not user.is_appropriate(status):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue