sleep between each crawl run for 15 seconds

This commit is contained in:
Egg 2024-10-09 15:27:53 +02:00
parent 31192f5dfe
commit 9a262514fd

View file

@ -32,9 +32,9 @@ if __name__ == '__main__':
try:
while True:
sleep(15) # rest 15 seconds between each crawl run
for user in db.active_users:
for bot in bots:
sleep(1)
reports = bot.crawl(user)
for status in reports:
if not user.is_appropriate(status):