-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (26 loc) · 720 Bytes
/
Copy pathmain.py
File metadata and controls
31 lines (26 loc) · 720 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
#!/usr/bin/env python
# -- coding: utf-8 --
import os
from crawler.work import Crawler
from elastic.search import MyElasticSearch
from public.tools import Tools
if __name__ == '__main__':
while True:
os.system("cls")
Tools.printAscii()
print("1. 采集指纹")
print("2. 检索指纹")
print("3. 清除缓存")
print("4. 退出程序")
print()
choise = int(input("请选择一个模式:"))
if choise == 1:
Crawler().start()
elif choise == 2:
MyElasticSearch().search()
elif choise == 3:
Tools().clearAll()
elif choise == 4:
break
else:
continue