mirror of
https://github.com/maldevel/EmailHarvester.git
synced 2024-09-20 15:05:57 +08:00
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:
parent
a5827d822c
commit
5cd52c4b4f
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue