1616zoomeye_dir = os .path .expanduser (config .ZOOMEYE_CONFIG_PATH )
1717
1818
19- def init_key (key ):
19+ def init_key (key ): #初始化API密钥并将其保存在本地配置文件中
20+
2021 """
2122 initialize through the api key, write the api key to the local configuration file,
2223 theoretically it will never expire unless you remake the api key
@@ -43,7 +44,7 @@ def init_key(key):
4344 os .chmod (key_file , 0o600 )
4445
4546
46- def init (args ):
47+ def init (args ):#根据用户输入的参数来选择初始化方法,可以通过API密钥来进行初始化
4748 """
4849 the initialization processing function will select the initialization method according to the user's input.
4950 :param args:
@@ -59,7 +60,7 @@ def init(args):
5960 show .printf ("please run <zoomeye init -h> for help." , color = "red" )
6061
6162
62- def search (args ):
63+ def search (args ):#进行搜索操作,根据用户输入的搜索条件进行搜索
6364 dork = args .dork
6465 num = int (args .num )
6566 facet = args .facet
@@ -93,7 +94,7 @@ def search(args):
9394 show .printf ("please run <zoomeye search -h> for help." )
9495
9596
96- def info (args ):
97+ def info (args ):#打印当前用户的身份和本月剩余的数据配额
9798 """
9899 used to print the current identity of the user and the remaining data quota for the month
99100 :param args:
@@ -111,7 +112,7 @@ def info(args):
111112 show .printf ("quota_info: {}" .format (user_data ["quota_info" ]))
112113
113114
114- def ip_history (args ):
115+ def ip_history (args ):#查询设备的历史信息
115116 """
116117 query device history
117118 please see: https://www.zoomeye.org/doc#history-ip-search
@@ -141,7 +142,7 @@ def ip_history(args):
141142 zm .show_fields ()
142143
143144
144- def clear_file (args ):
145+ def clear_file (args ):#清除用户设置和ZoomEye缓存数据
145146 """
146147 clear user setting and zoomeye cache data
147148 """
@@ -165,7 +166,7 @@ def clear_file(args):
165166 show .printf ("clear complete!" , color = 'green' )
166167
167168
168- def information_ip (args ):
169+ def information_ip (args ):#获取特定IP的信息
169170 ip = args .ip
170171 filters = args .filter
171172 # determine whether the input is an IP address by regular
@@ -185,7 +186,7 @@ def information_ip(args):
185186 infor .show_information ()
186187
187188
188- def associated_domain_query (args ):
189+ def associated_domain_query (args ):#关联域名查询
189190 q = args .q
190191 resource = args .type
191192 page = args .page
0 commit comments