def insert_whois_info(self, **domain_whois):
try:
table_num = get_table_num(domain_whois['domain_hash'])
event = self.model_list[table_num].insert(
domain_hash=domain_whois['domain_hash'],
domain=domain_whois['domain'],
tld=domain_whois['domain'].split('.')[-1],
flag=domain_whois['flag'],
domain_status=domain_whois['domain_status'],
sponsoring_registrar=domain_whois['sponsoring_registrar'],
top_whois_server=domain_whois['top_whois_server'],
sec_whois_server=domain_whois['sec_whois_server'],
reg_name=domain_whois['reg_name'],
reg_phone=domain_whois['reg_phone'],
reg_email=domain_whois['reg_email'],
org_name=domain_whois['org_name'],
name_server=domain_whois['name_server'],
creation_date=domain_whois['creation_date'],
expiration_date=domain_whois['expiration_date'],
updated_date=domain_whois['updated_date'],
insert_time=domain_whois['insert_time'],
details=domain_whois['details'],
whois_hash=domain_whois['whois_hash']
)
event.execute()
except peewee.OperationalError as e:
print e
except TableChoiceError as e:
print e
# ?????whois??
评论列表
文章目录