-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy_scrap3r.py
40 lines (32 loc) · 1.48 KB
/
proxy_scrap3r.py
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
32
33
34
35
36
37
38
39
40
import argparse
from handler.proxy_handler import renew_proxy_list
def get_terminal_arguments():
default_output = "./output/proxy_list.json"
githubRepo = "https://github.com/nicolasSchirmer/proxy-scrap3r"
parser = argparse.ArgumentParser(
formatter_class=argparse.RawTextHelpFormatter,
description="A simple proxy list scraper tool:\n"
"Github repository: " + githubRepo)
parser.add_argument('-jf', dest="json_file_output", required=False,
help="Json file output path. (it's optional)\n\n"
"Need to be a .json file.\n"
"The default is " + default_output + "\n",
type=str, default=default_output)
return parser.parse_args()
if __name__ == '__main__':
print("""
|||||| |||||| ||||||| || || || ||
|| || || || || || || || || ||
||||| ||||| || || || ||
|| || | || || || || ||
|| || || ||||||| || || ||
==========================================
=== +++ ]]]] # $$$ @@@@@ *****
=== + ]]] ### $$$ @@@ *****
=== +++ ] ] # # $ @@@@@ * *
==========================================
---- A simple proxy list scraper tool ----
==========================================
""")
args = get_terminal_arguments()
renew_proxy_list(args.json_file_output)