mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-21 15:56:44 +08:00
Stripped off from beginning.
This commit is contained in:
parent
b184016dac
commit
7409dc678f
|
@ -36,15 +36,15 @@ def get_people(self):
|
|||
# fix invalid handles that look like @user other_output
|
||||
handles = set()
|
||||
for handle in to_parse:
|
||||
handle = str(handle)
|
||||
handle = str(handle).strip()
|
||||
if len(handle) > 2:
|
||||
if ' ' in handle.strip():
|
||||
if ' ' in handle:
|
||||
handle = handle.split(' ')[0]
|
||||
# strip off period at the end if exists
|
||||
if handle[len(handle) - 1] == '.':
|
||||
handle = handle[:len(handle) - 1]
|
||||
# strip periods if contains three of them
|
||||
if '...' in handle.strip():
|
||||
if '...' in handle:
|
||||
handle = handle[:handle.index('.')]
|
||||
handles.add(handle)
|
||||
return handles
|
||||
|
|
Loading…
Reference in a new issue