fix huntersearch

This commit is contained in:
Jay Townsend 2019-08-19 22:57:23 +01:00
parent b96490d9c3
commit 78cad1be4d
2 changed files with 5 additions and 7 deletions

View file

@ -22,19 +22,17 @@ def do_search(self):
response = grequests.map([request]) response = grequests.map([request])
self.total_results = response[0].content.decode('UTF-8') self.total_results = response[0].content.decode('UTF-8')
def process(self): def process(self):
self.do_search() # Only need to do it once. self.do_search() # Only need to do it once.
def get_emails(self): def get_emails(self):
rawres = myparser.Parser(self.totalresults, self.word) rawres = myparser.Parser(self.total_results, self.word)
return rawres.emails() return rawres.emails()
def get_hostnames(self): def get_hostnames(self):
rawres = myparser.Parser(self.totalresults, self.word) rawres = myparser.Parser(self.total_results, self.word)
return rawres.hostnames() return rawres.hostnames()
def get_profiles(self): def get_profiles(self):
rawres = myparser.Parser(self.totalresults, self.word) rawres = myparser.Parser(self.total_results, self.word)
return rawres.profiles() return rawres.profiles()