From 9f0b341ebf39f88c81dcb8d972bb8b33e9bc7d6b Mon Sep 17 00:00:00 2001 From: maldevel Date: Fri, 22 Apr 2016 16:23:03 +0300 Subject: [PATCH] minor - beautify code minor - beautify code --- EmailHarvester.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/EmailHarvester.py b/EmailHarvester.py index 4269b7f..db09c16 100644 --- a/EmailHarvester.py +++ b/EmailHarvester.py @@ -31,7 +31,6 @@ __license__ = "GPLv3" __version__ = "1.2.6" __maintainer__ = "maldevel" - ################################ import argparse import sys @@ -78,7 +77,6 @@ class myparser: self.new = list(set(self.temp)) return self.new - ################################################################### class EmailHarvester(object): @@ -119,7 +117,6 @@ class EmailHarvester(object): try: urly = self.urlPattern.format(counter=str(self.counter), word=self.word) headers = {'User-Agent': self.userAgent} - if(self.proxy): proxies = {self.proxy.scheme: "http://" + self.proxy.netloc} r=requests.get(urly, headers=headers, proxies=proxies) @@ -178,7 +175,6 @@ def engine_type(engine): return engine raise argparse.ArgumentTypeError("Invalid search engine, try with: {}.".format(', '.join(engines))) - ################################################################### if __name__ == '__main__': @@ -215,7 +211,6 @@ if __name__ == '__main__': parser.add_argument('--noprint', action='store_true', default=False, help='EmailHarvester will print discovered emails to terminal. It is possible to tell EmailHarvester not to print results to terminal with this option.') - if len(sys.argv) is 1: parser.print_help() sys.exit() @@ -240,7 +235,6 @@ if __name__ == '__main__': app = EmailHarvester() plugins = app.get_plugins() - all_emails = [] if engine == "all": print(green("[+] Searching everywhere.."))