add time sleep in each request

pull/208/head
Sebdraven 2018-07-10 16:41:44 +02:00
parent 602da3d1a3
commit e9747a3379
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import json
import logging
import sys
import time
from dnstrails import APIError
from dnstrails import DnsTrails
@ -79,6 +80,7 @@ def handle_domain(api, domain, misperrors):
misperrors['error'] = 'Error dns result'
return misperrors
time.sleep(1)
r, status_ok = expand_subdomains(api, domain)
if status_ok:
@ -87,6 +89,7 @@ def handle_domain(api, domain, misperrors):
misperrors['error'] = 'Error subdomains result'
return misperrors
time.sleep(1)
r, status_ok = expand_whois(api, domain)
if status_ok:
@ -95,6 +98,7 @@ def handle_domain(api, domain, misperrors):
misperrors['error'] = 'Error whois result'
return misperrors
time.sleep(1)
r, status_ok = expand_history_ipv4(api, domain)
if status_ok: