hound_db.increase(sql); time.sleep(0.3) else: break; if recursion != None: #递归爆破 print ' Ready to burst, the need for a certain time! ' while True: sql = "select url from %s where recursion = 0 limit 1" % (url_tables); recursion_url = hound_db.query_all(sql); if len(recursion_url) > 0 : blast.recursion_blast_url(url_tables,thread,lis,recursion_url); #查询1数据后进行爆破 并且等待爆破完2条 else: break; time.sleep(1); print 'OK!' if h_crawler != None:#爬虫 while True: sql = "select url from %s where Crawler = 0 limit %i" % (url_tables , h_crawler); crawler_url = hound_db.query_all(sql); if len(crawler_url) == 0 : break;
'''接口调用完毕!''' blast.blast_url(url,thread,lis); #调用万接口后爆破域名 并且等待结束 function.table_print(url.replace('.','_')); #输出表格 time.sleep(3); if recursion != None: #递归爆破 print ' Ready to burst, the need for a certain time! ' while True: sql = "select url from %s where recursion = 0 limit 1" % (url.replace('.','_')); recursion_url = hound_db.query_all(sql); if len(recursion_url) > 0 : blast.recursion_blast_url(url,thread,lis,recursion_url); #查询1数据后进行爆破 并且等待爆破完2条 else: break; time.sleep(1); print 'OK!' function.table_print(url.replace('.','_')); #输出表格 if h_crawler != None:#爬虫 while True: sql = "select url from %s where Crawler = 0 limit 5" % (url.replace('.','_')); crawler_url = hound_db.query_all(sql); if len(crawler_url) == 0 : break;
sql = "update %s set dns = 1 where url = '%s'" % ( url_tables, this_dns_yuming) hound_db.increase(sql) time.sleep(0.3) else: break if recursion != None: #递归爆破 print ' Ready to burst, the need for a certain time! ' while True: sql = "select url from %s where recursion = 0 limit 1" % ( url_tables) recursion_url = hound_db.query_all(sql) if len(recursion_url) > 0: blast.recursion_blast_url(url_tables, thread, lis, recursion_url) #查询1数据后进行爆破 并且等待爆破完2条 else: break time.sleep(1) print 'OK!' if h_crawler != None: #爬虫 while True: sql = "select url from %s where Crawler = 0 limit %i" % ( url_tables, h_crawler) crawler_url = hound_db.query_all(sql) if len(crawler_url) == 0: break
#调用万接口后爆破域名 并且等待结束 function.table_print(url.replace('.', '_')) #输出表格 time.sleep(3) if recursion != None: #递归爆破 print ' Ready to burst, the need for a certain time! ' while True: sql = "select url from %s where recursion = 0 limit 1" % ( url.replace('.', '_')) recursion_url = hound_db.query_all(sql) if len(recursion_url) > 0: blast.recursion_blast_url(url, thread, lis, recursion_url) #查询1数据后进行爆破 并且等待爆破完2条 else: break time.sleep(1) print 'OK!' function.table_print(url.replace('.', '_')) #输出表格 if h_crawler != None: #爬虫 while True: sql = "select url from %s where Crawler = 0 limit 5" % ( url.replace('.', '_')) crawler_url = hound_db.query_all(sql)