-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (24 loc) · 813 Bytes
/
main.py
File metadata and controls
31 lines (24 loc) · 813 Bytes
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
26
27
28
29
30
31
from cli.cli_process import main_cli
from osint.full_name_search import search_full_name
from osint.username_search import search_username
from osint.search_ip import search_ip
def run_tests():
print("Running tests with hardcoded parameters...\n")
print("Testing full name search:")
full_name_result = search_full_name("Jean", "Dupont")
print(full_name_result)
print("\n")
print("Testing username search:")
username_result = search_username("testuser")
print(username_result)
print("\n")
print("Testing IP search:")
ip_result = search_ip("8.8.8.8")
print(ip_result)
print("\n")
if __name__ == "__main__":
import sys
if len(sys.argv) > 1 and sys.argv[1] == "--test":
run_tests()
else:
main_cli()