예제 #1
0
 def setup_ip_addr(self):
     """
         Download and populate the IP to country database with static downloaded file.
     """
     ip = DownloadIP('ip_loc/test_files/IpToCountry.csv.zip')
     ip.run()
예제 #2
0
def daily_cron():
    ip = DownloadIP()
    ip.run()

    user_monitor = MonitorUsers([COUNTRY_FLAG, TOR_FLAG])
    user_monitor.run()