-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
25 lines (20 loc) · 945 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import argparse
from osint.osint import Osint, filepath
def parse_args():
parser = argparse.ArgumentParser(description='Python OSINT')
parser.add_argument('-u', '--username',
help='Username (nickname online)', type=str)
parser.add_argument('-e', '--email',
help='Email address', type=str)
parser.add_argument('-f', '--firstname',
help='Firstname (must come with a lastname as well)', type=str)
parser.add_argument('-l', '--lastname',
help='Lastname (must come with a firstname as well)', type=str)
return parser.parse_args()
if __name__ == '__main__':
args = parse_args()
osint = Osint(username=args.username, email=args.email, firstname=args.firstname, lastname=args.lastname)
print('Searching {}...'.format(args))
osint.search()
osint.log()
print('Results available in {}...'.format(filepath))