1616zoomeye_dir = os .path .expanduser (config .ZOOMEYE_CONFIG_PATH )
1717
1818
19- def key_init (key ):
19+ def key_init (key ):#初始化API密钥并将其保存在本地配置文件中
2020 """
2121 initialize through the api key, write the api key to the local configuration file,
2222 theoretically it will never expire unless you remake the api key
@@ -43,7 +43,7 @@ def key_init(key):
4343 os .chmod (key_file , 0o600 )
4444
4545
46- def init (args ):
46+ def init (args ):#根据用户输入的参数来选择初始化方法,可以通过API密钥来进行初始化
4747 """
4848 the initialization processing function will select the initialization method according to the user's input.
4949 :param args:
@@ -59,7 +59,7 @@ def init(args):
5959 show .printf ("please run <zoomeye init -h> for help." , color = "red" )
6060
6161
62- def search (args ):
62+ def search (args ):#进行搜索操作,根据用户输入的搜索条件进行搜索
6363 dork = args .dork
6464 num = int (args .num )
6565 facet = args .facet
@@ -93,7 +93,7 @@ def search(args):
9393 show .printf ("please run <zoomeye search -h> for help." )
9494
9595
96- def info (args ):
96+ def info (args ):#打印当前用户的身份和本月剩余的数据配额
9797 """
9898 used to print the current identity of the user and the remaining data quota for the month
9999 :param args:
@@ -111,7 +111,7 @@ def info(args):
111111 show .printf ("quota_info: {}" .format (user_data ["quota_info" ]))
112112
113113
114- def ip_history (args ):
114+ def ip_history (args ):#查询设备的历史信息
115115 """
116116 query device history
117117 please see: https://www.zoomeye.org/doc#history-ip-search
@@ -141,7 +141,7 @@ def ip_history(args):
141141 zm .show_fields ()
142142
143143
144- def clear_file (args ):
144+ def clear_file (args ):#清除用户设置和ZoomEye缓存数据
145145 """
146146 clear user setting and zoomeye cache data
147147 """
@@ -165,7 +165,7 @@ def clear_file(args):
165165 show .printf ("clear complete!" , color = 'green' )
166166
167167
168- def information_ip (args ):
168+ def information_ip (args ):#获取特定IP的信息
169169 ip = args .ip
170170 filters = args .filter
171171 # determine whether the input is an IP address by regular
@@ -185,7 +185,7 @@ def information_ip(args):
185185 infor .show_information ()
186186
187187
188- def associated_domain_query (args ):
188+ def associated_domain_query (args ):#关联域名查询
189189 q = args .q
190190 resource = args .type
191191 page = args .page
0 commit comments