From 32e2726deecdf835d814d1bdbc0462ee8f6076f7 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 25 Oct 2023 11:47:13 +0800 Subject: [PATCH] enable command line to assign proxy server. --- chrome_tixcraft.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index d57f848..5ca8d53 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -185,6 +185,10 @@ def get_config_dict(args): if not args.ibonqware is None: if len(args.ibonqware) > 0: config_dict["advanced"]["ibonqware"] = encryptMe(args.ibonqware) + if not args.proxy_server is None: + if len(args.proxy_server) > 2: + config_dict["advanced"]["proxy_server_port"] = args.proxy_server + # special case for headless to enable away from keyboard mode. @@ -11806,6 +11810,10 @@ def cli(): choices=['chrome','firefox','edge','safari','brave'], type=str) + parser.add_argument("--proxy_server", + help="overwrite proxy server, format: ip:port", + type=str) + args = parser.parse_args() main(args)