mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 15:03:01 +08:00
Fixed small bug.
This commit is contained in:
parent
849e865690
commit
50ccf25832
1 changed files with 1 additions and 3 deletions
|
@ -37,15 +37,13 @@ def get_people(self):
|
||||||
handles = set()
|
handles = set()
|
||||||
for handle in to_parse:
|
for handle in to_parse:
|
||||||
handle = str(handle)
|
handle = str(handle)
|
||||||
if len(handle) > 1:
|
if len(handle) > 2:
|
||||||
if ' ' in handle.strip():
|
if ' ' in handle.strip():
|
||||||
handle = handle.split(' ')[0]
|
handle = handle.split(' ')[0]
|
||||||
# strip off period at the end of exists
|
# strip off period at the end of exists
|
||||||
if handle[len(handle)-1] == '.':
|
if handle[len(handle)-1] == '.':
|
||||||
handle = handle[:len(handle)-1]
|
handle = handle[:len(handle)-1]
|
||||||
handles.add(handle)
|
handles.add(handle)
|
||||||
else:
|
|
||||||
handles.add(handle)
|
|
||||||
return handles
|
return handles
|
||||||
|
|
||||||
def process(self):
|
def process(self):
|
||||||
|
|
Loading…
Reference in a new issue