exalead plugin added

exalead plugin added
This commit is contained in:
maldevel 2016-04-23 10:13:20 +03:00
parent c8dfb3e4ea
commit de6e2971ce
2 changed files with 48 additions and 0 deletions

42
plugins/exalead.py Normal file
View file

@ -0,0 +1,42 @@
"""
This file is part of EmailHarvester
Copyright (C) 2016 @maldevel
https://github.com/maldevel/EmailHarvester
EmailHarvester - A tool to retrieve Domain email addresses from Search Engines.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
For more see the file 'LICENSE' for copying permission.
"""
#config = None
app_emailharvester = None
def search(domain, limit):
app_emailharvester.show_message("\n[+] Searching in Exalead..\n")
url = "http://www.exalead.com/search/web/results/?q=%40{word}&elements_per_page=10&start_index={counter}"
app_emailharvester.init_search(url, domain, limit, 0, 50)
app_emailharvester.process()
return app_emailharvester.get_emails()
class Plugin:
def __init__(self, app):#, conf
global app_emailharvester, config
#config = conf
app.register_plugin('exalead', {'search': search})
app_emailharvester = app

View file

@ -59,6 +59,12 @@ def search(domain, limit):
app_emailharvester.process()
all_emails += app_emailharvester.get_emails()
app_emailharvester.show_message("\n[+] Searching in Exalead + Linkedin..\n")
url = "http://www.exalead.com/search/web/results/?q=site%3Alinkedin.com+%40{word}&elements_per_page=10&start_index={counter}"
app_emailharvester.init_search(url, domain, limit, 0, 50)
app_emailharvester.process()
all_emails += app_emailharvester.get_emails()
#dogpile seems to not support site:
return all_emails