From 47497abe1871099aa1646a65177929c217a09e5c Mon Sep 17 00:00:00 2001 From: Janos Zold Date: Sun, 23 Dec 2018 17:03:18 +0000 Subject: [PATCH] removed unnecessary print from censysparser.py --- censysparser.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/censysparser.py b/censysparser.py index 40a04245..1756fa3d 100755 --- a/censysparser.py +++ b/censysparser.py @@ -27,7 +27,6 @@ def search_hostnamesfromcerts(self): self.hostnamesfromcerts = list(filter(None, self.hostnamesfromcerts)) matchingdomains = [s for s in self.hostnamesfromcerts if str(self.domain) in s] #filter out domains issued to other sites self.hostnamesfromcerts = matchingdomains - print("STOP") return self.hostnamesfromcerts except Exception as e: print("Error occurred in the Censys module: certificate hostname parser: " + str(e)) @@ -46,7 +45,7 @@ def search_numberofpageshosts(self): items = self.souphosts.findAll(href=re.compile("page")) for item in items: if (item.text !='next'): #to filter out pagination - self.numberofpageshosts+=1 + self.numberofpageshosts+= 1 return self.numberofpageshosts except Exception as e: print("Error occurred in the Censys module IP search: page parser: " + str(e)) @@ -59,7 +58,4 @@ def search_numberofpagescerts(self): self.numberofpagescerts += 1 return self.numberofpagescerts except Exception as e: - print("Error occurred in the Censys module certificate search: page parser: " + str(e)) - - - + print("Error occurred in the Censys module certificate search: page parser: " + str(e)) \ No newline at end of file