Fix yahoo UnboundLocalError: local variable yahoosearch referenced before assignment

This commit is contained in:
Jay Townsend 2019-08-11 21:24:56 +01:00
parent b59619bddf
commit b0e390fd8d

View file

@ -377,6 +377,7 @@ def start():
elif engineitem == 'yahoo':
print('\033[94m[*] Searching Yahoo. \033[0m')
from theHarvester.discovery import yahoosearch
search = yahoosearch.SearchYahoo(word, limit)
search.process()
hosts = search.get_hostnames()