import sys
import os.path
import subprocess

chrome = 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'

proxy = 'localhost:1080'

if not os.path.isfile(chrome):
    print("chrome path invaild", file=sys.stderr)
    exit(1)

subprocess.Popen([chrome, '--proxy-server=' + proxy])
Last modification:May 14th, 2020 at 12:43 pm
 Support
如果觉得我的文章对你有用,请随意赞赏