def get_domain(): exist_domain = [] existe_domain_temp = () check_domain_list_temp = () check_domain_list = [] db = Database() existe_domain_temp = db.existed_white_domain() if existe_domain_temp: exist_domain = [i[0] for i in existe_domain_temp] check_domain_list_temp = db.get_check_domain() if check_domain_list_temp: check_domain_list = [i[0] for i in check_domain_list_temp] db.close_db() # print len(list(set(domain_list).difference(set(exist_domain)))) return list(set(exist_domain).difference(set(check_domain_list)))