Fix for issue #26

Fixes this error 
Traceback (most recent call last):
  File "EmailHarvester.py", line 265, in <module>
    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'
This commit is contained in:
lukas2005 2017-08-29 20:10:20 +02:00 committed by GitHub
parent a5827d822c
commit 5cd52c4b4f

View file

@ -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):