From 5cd52c4b4fc3c1431b64256ef565fd6cba28412f Mon Sep 17 00:00:00 2001 From: lukas2005 Date: Tue, 29 Aug 2017 20:10:20 +0200 Subject: [PATCH] Fix for issue #26 Fixes this error Traceback (most recent call last): File "EmailHarvester.py", line 265, in app = EmailHarvester(userAgent, args.proxy) File "EmailHarvester.py", line 105, in __init__ plugins[fname] = mod.Plugin(self, {'useragent':userAgent, 'proxy':proxy}) AttributeError: module 'google' has no attribute 'Plugin' --- EmailHarvester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmailHarvester.py b/EmailHarvester.py index 9735157..fad44a9 100644 --- a/EmailHarvester.py +++ b/EmailHarvester.py @@ -101,7 +101,7 @@ class EmailHarvester(object): for f in os.listdir(path): fname, ext = os.path.splitext(f) if ext == '.py': - mod = __import__(fname) + mod = __import__(fname, fromlist=['']) plugins[fname] = mod.Plugin(self, {'useragent':userAgent, 'proxy':proxy}) def register_plugin(self, search_method, functions):