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