one-command starter for beginners, free socks proxy pool from iishko, iishko gateway shim + channel sql
This commit is contained in:
@@ -10,6 +10,16 @@ ROTATOR = r'C:\Users\User\tmp\zte_rotate3.py'
|
||||
ZTE_PROXY = 'http://127.0.0.1:8899'
|
||||
|
||||
|
||||
def kill_all_chrome():
|
||||
"""Kill every chrome process tree (MSYS needs MSYS_NO_PATHCONV for taskkill)."""
|
||||
env = dict(os.environ, MSYS_NO_PATHCONV='1')
|
||||
try:
|
||||
subprocess.run('taskkill /F /IM chrome.exe /T', shell=True,
|
||||
capture_output=True, timeout=60, env=env)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def cdp_alive(port: int) -> bool:
|
||||
try:
|
||||
with urllib.request.urlopen(f'http://127.0.0.1:{port}/json/version', timeout=3) as r:
|
||||
|
||||
Reference in New Issue
Block a user