Commit 1d40afe5 authored by wang's avatar wang

适配不同版本 chrome

parent 958f01c0
......@@ -66,7 +66,7 @@ for i in range(100):
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
if platform.uname().system == 'Darwin':
proxy = 'http://127.0.0.1:7890'
proxy = 'http://127.0.0.1:8890'
tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_114'
session = tls_client.Session(tlsV)
......@@ -91,8 +91,8 @@ for i in range(100):
t1 = time.time()
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
p = subprocess.Popen(['node', 'js_dom_run.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'js_dom_run.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
......
......@@ -45,7 +45,7 @@ let sid = keys[parseInt(Math.random() * keys.length)]
let ENV = ENVS[sid]
// let ENV = ENVS[ '1']
let randomEvent = true;
let timeout = true;
let timeout = false;
_hasOwnProperty = Object.hasOwnProperty
Object.hasOwnProperty = function (a){
let res = _hasOwnProperty.call(this, a);
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment