mirror of
https://github.com/laramies/theHarvester.git
synced 2026-09-27 03:54:51 +02:00
flake8
This commit is contained in:
@@ -34,16 +34,13 @@ def start():
|
||||
parser.add_argument('-c', '--dns-brute', help='perform a DNS brute force on the domain', default=False, action='store_true')
|
||||
parser.add_argument('-f', '--filename', help='save the results to an HTML and/or XML file', default='', type=str)
|
||||
parser.add_argument('-b', '--source', help='''baidu, bing, bingapi, censys, crtsh, dnsdumpster,
|
||||
|
||||
dogpile, duckduckgo, github-code, google,
|
||||
hunter, intelx,
|
||||
linkedin,linkedin_links, netcraft, securityTrails, threatcrowd,
|
||||
trello, twitter, vhost, virustotal, yahoo, all''')
|
||||
parser.add_argument('-x', '--exclude', help='exclude options when using all sources', type=str)
|
||||
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
db = stash.stash_manager()
|
||||
db.do_init()
|
||||
|
||||
@@ -26,6 +26,7 @@ def splitter(links):
|
||||
name_check.append(joined_name)
|
||||
return unique_list
|
||||
|
||||
|
||||
def filter(lst):
|
||||
"""
|
||||
Method that filters list
|
||||
|
||||
@@ -4,6 +4,7 @@ from theHarvester.parsers import myparser
|
||||
import requests
|
||||
import time
|
||||
|
||||
|
||||
class SearchLinkedin:
|
||||
|
||||
def __init__(self, word, limit):
|
||||
@@ -37,16 +38,9 @@ class SearchLinkedin:
|
||||
links = myparser.Parser(self.totalresults, self.word)
|
||||
return splitter(links.links_linkedin())
|
||||
|
||||
|
||||
def process(self):
|
||||
while self.counter < self.limit:
|
||||
self.do_search()
|
||||
time.sleep(getDelay())
|
||||
self.counter += 100
|
||||
print(f'\tSearching {self.counter} results.')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -90,8 +90,6 @@ class Parser:
|
||||
reg_people = re.compile(r'">[a-zA-Z0-9._ -]* \| LinkedIn')
|
||||
self.temp = reg_people.findall(self.results)
|
||||
resul = []
|
||||
|
||||
|
||||
for x in (self.temp):
|
||||
y = x.replace(' | LinkedIn', '')
|
||||
y = y.replace(' profiles ', '')
|
||||
|
||||
Reference in New Issue
Block a user