def get_domain(target):
url = "https://www.robtex.net/?dns=" + str(target) + "&rev=1"
html = urllib.urlopen(url).read()
soup = BeautifulSoup(html, 'html.parser')
table = soup.findAll("td")
table = remove_tags(str(table))
data = table.split(",")
for d in data:
if len(d) > 10:
d = d.replace(" ", "")
d = d.replace("]","")
if check_domain_mongodb(target, d):
print "[INFO]" + str(d) + " in " + str(target) + " already insert ..."
else:
insert_mongodb(target, d)
print colores.verde + "[INFO]" + str(d) + " in " + str(target) + " insert ..." + colores.normal
评论列表
文章目录