161 | def print_arguments(args): |
162 | |
163 | if args.number_of_proxies > 0: |
164 | number = args.number_of_proxies |
165 | else: |
166 | number = 'all' |
167 | print('[info] number of proxies: {0}'.format(number)) |
168 | |
169 | |
170 | if len(args.countries_list) <= 5: |
171 | countries = args.countries_list |
172 | else: |
173 | countries = '{0} and {1} more' |
174 | countries = countries.format(args.countries_list[0:5], |
175 | len(args.countries_list) - 5) |
176 | print('[info] countries: {0}'.format(countries)) |
177 | |
178 | |
179 | if args.ports: |
180 | ports = args.ports |
181 | else: |
182 | ports = 'all' |
183 | print('[info] ports: {0}'.format(ports)) |
184 | |
185 | |
186 | print('[info] protocols: {0}'.format(args.protocols)) |
187 | |
188 | |
189 | anonymity_levels = ['None', 'Low', 'Medium', 'High'] |
190 | if args.keep_alive: |
191 | anonymity_levels.append('High +KA') |
192 | print('[info] anonymity: {0}'.format( |
193 | anonymity_levels[args.anonymity:])) |
194 | |
195 | |
196 | speed_levels = ['Slow', 'Medium', 'High'] |
197 | print('[info] speed: {0}'.format(speed_levels[args.speed - 1:])) |
198 | |
199 | |
200 | connection_time_levels = ['Slow', 'Medium', 'High'] |
201 | print('[info] connection time: {0}'.format( |
202 | connection_time_levels[args.connection_time - 1:])) |