|
@@ -2,12 +2,13 @@ import whois
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
from concurrent.futures import ThreadPoolExecutor
|
|
import os,sys,re,json
|
|
import os,sys,re,json
|
|
# import requests
|
|
# import requests
|
|
-
|
|
|
|
|
|
+import logging
|
|
class SearchDomain(object):
|
|
class SearchDomain(object):
|
|
- """docstring for SearchDomain"""
|
|
|
|
|
|
+ """search avaliable domain and save result"""
|
|
|
|
+
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super(SearchDomain,self).__init__()
|
|
super(SearchDomain,self).__init__()
|
|
-
|
|
|
|
|
|
+
|
|
def crawl(self, domain:str)->None:
|
|
def crawl(self, domain:str)->None:
|
|
'''
|
|
'''
|
|
检测域名是否可用
|
|
检测域名是否可用
|
|
@@ -30,6 +31,7 @@ class SearchDomain(object):
|
|
pass
|
|
pass
|
|
|
|
|
|
def run(self):
|
|
def run(self):
|
|
|
|
+ '''begin search domain'''
|
|
with open("res/res.json","w",encoding="utf8") as file:
|
|
with open("res/res.json","w",encoding="utf8") as file:
|
|
pool=ThreadPoolExecutor(max_workers=10)
|
|
pool=ThreadPoolExecutor(max_workers=10)
|
|
for i in range(100):
|
|
for i in range(100):
|