Fix linkedin hardcoded value

Use common code for one missed search engine
This commit is contained in:
mmayank
2019-10-20 00:19:51 +05:30
parent feca9e79c9
commit 9216dbb9cf
+3 -8
View File
@@ -126,9 +126,9 @@ def start():
print(usr)
if store_links:
links = search_engine.get_links()
db.store_all(word, links, 'name', 'linkedin')
db.store_all(word, links, 'name', engineitem)
if len(links) == 0:
print('\n[*] No links found Linkedin.\n\n')
print('\n[*] No links found.\n\n')
else:
print(f'\n[*] Links found: {len(links)}')
print('---------------------')
@@ -176,12 +176,7 @@ def start():
from theHarvester.discovery import certspottersearch
try:
certspotter_search = certspottersearch.SearchCertspoter(word)
certspotter_search.process()
hosts = filter(certspotter_search.get_hostnames())
all_hosts.extend(list(hosts))
all_hosts.extend(hosts)
db = stash.stash_manager()
db.store_all(word, all_hosts, 'host', 'certspotter')
store(certspotter_search, engineitem, None, store_host=True)
except Exception as e:
print(e)